Is it possible to auto copy my ssh key after a successful first time ssh login with password ?
In other words :
when I type :
ssh user@host
for the first time to that host and I successfully enter the right password I get my ssh key automatically copied to that host without the need to do : copy-ssh-key
command manually
ssh me@host 'cat "'$(~/.ssh/id_rsa.pub)'" > ~/.ssh/known_hosts ; exec $SHELL'
would work but the problem is you'd get the same line duplicated in the server's known_hosts file every time you log in.