ssh without password ubuntu 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 pc without password ubuntu
# run on local pc
sudo apt-get update
sudo apt-get -y install openssh-server
sudo systemctl start ssh
ssh-keygen -t rsa
ssh-copy-id your_username@your_server-IP