setup ssh without password code example
Example 1: ssh save 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
Example 2: ssh paswordless
[tecmint@tecmint ~]$ cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
[email protected]'s password: [Enter Your Password Here]