I have been wondering is there a way that I can copy a rsa public key to
a server in one command.
I can do this
ssh 192.168.1.220 mkdir -m 700 ~/.ssh
rsync /home/aaa/.ssh/id_rsa.pub [email protected]
<mailto:john@calso>:.ssh/authorized_keys
but it means I have to log in twice.
rsync has got --chmod but I am not to sure how to use it to only change
the .ssh dir
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users