$ sudo vim /etc/ssh/sshd_config
#PasswordAuthentication yes # default
RSAAuthentication yes
PubkeyAuthentication yes
Match User user1,user2
PasswordAuthentication no
$ sudo service ssh reload[Linux] 限制使用者只能用 public key 登入 @ Ubuntu 12.04
原先是要用在 mysql 之 rsync 的備份方式,雖然最後不用了,也順便記一下: