
上QQ阅读APP看书,第一时间看更新
Setup password-less ssh
Now check if you can ssh to the localhost without a passphrase by running a simple command, shown as follows:
$ ssh localhost
If you cannot ssh to localhost without a passphrase, execute the following commands:
$ ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa $ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys $ chmod 0600 ~/.ssh/authorized_keys