Пользователем test делаю 2 rsa-ключа. Копирую rsa_identity.pub в authorized_keys на другом компе. В sshd_config делаю:
RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile /home/test/.ssh/authorized_keys
перегружаю sshd на обеих.
Говорю ssh 172.16.0.2
ответ:
The authenticity of host '172.16.0.2 (172.16.0.2)' can't be established. RSA1 key fingerprint is 8a:34:2f:f2:0d:1a:0c:46:ca:f7:90:a8:92:d8:27:4d. Are you sure you want to continue connecting (yes/no)?