1 ssh-keygen -t rsa
This will generate the pub key and private keys
Now copy the id_rsa.pub to the .ssh directory of the remote host you want to logon to as authorized_keys
2 scp id_rsa.pub
that'a all
Now try to login the remote server as
3 ssh
For more details refer to
http://www.cs.umd.edu/~arun/misc/ssh.html
The correct command for copying pub key is scp id_rsa.pub Remote Server Name :.ssh/authorized_keys
1 comment:
The correct command for copying pub key is
scp id_rsa.pub Remote Server Name :.ssh/authorized_keys
Post a Comment