ssh without password
# generate ssh keygen on the client
$ ssh-keygen -t rsa -b 2048
$ ssh-copy-id id@server
id@server's password:
# after this you will not be prompted for password again
4.1
10
a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password:
Thank you!
10
0
3.89
13
/home/yourusername/.ssh/id_rsa /home/yourusername/.ssh/id_rsa.pub
Thank you!
13
0
Are there any code examples left?
New code examples in category Shell/Bash