How to configure passwordless ssh to localhost? Read on for steps.
Execute the below command to check if ssh to the localhost is without a password:
If it does not work, execute the following commands:
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
ssh localhostand check if it works. Read below, if still it does not work…
check if SSH Server is installed.
If not installed, run
sudo apt-get install openssh-server
Note : This is for Linux Ubuntu. Please check for other flavors/OS.
Run following command to check if ssh is running.
service ssh status
If not running, execute:
service sshd start
Run following command, (if ssh to localhost is not yet passwordless)