Saturday, August 30, 2014

SSH Login without password

you@localhost$ ssh-keygen -t rsa -b 2048
Generating public/private rsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_rsa): /home/username/.ssh/id_rsa.my_jee_server
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/username/.ssh/id_rsa.my_jee_server
Your public key has been saved in /home/username/.ssh/
Copy keys to server:
$ ssh-copy-id -i /home/username/.ssh/ you@server
you@server's password: 
Try login
you@localhost$ ssh you@server
Try copy 
you@locahost$ scp ~/ you@server:/home/username

No comments :

Post a Comment