ssh password -p code example
Example 1: ssh without password
a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password:
Example 2: ssh rembeber password
/home/yourusername/.ssh/id_rsa /home/yourusername/.ssh/id_rsa.pub
a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password:
/home/yourusername/.ssh/id_rsa /home/yourusername/.ssh/id_rsa.pub