ssh pc without password ubuntu 1

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

Here is what the above code is Doing:
1. Update the package list
2. Install the openssh-server package
3. Start the ssh service
4. Generate a new SSH key pair
5. Copy the public key to the server

Similar Posts