SSH 免密码登录
本机服务器
$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa $ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
$ ssh localhost
OK
将 id_dsa.pub 追加到 免密码登录的 ~ /.ssh/authorized_keys 中
远程服务器
$ ssh-copy-id -i ~/.ssh/id_rsa.pub username@hostname
$ ssh username@hostname