$ cat ~/.ssh/id_rsa.pub | ssh
This one is a bit more robust — the remote machine may not have an .ssh directory, and it may not have an authorized_keys file, but if it does already, and you want to replace your ssh public key for some reason, this will work in that case as well, without duplicating the entry.
View this command to comment, vote or add to favourites
View all commands by tamouse

by David Winterbottom (codeinthehole.com)






















0 Comments
You can be the first one to leave a comment.