我试图设置我的sshd接受没有系统用户帐户的用户。 我的方法是使用DSA公钥/私钥对。
$ ssh-keygen -t dsa 我在这里错过了什么?
谢谢。
可能是权限。
$ chmod 700 ~/.ssh $ chmod 600 ~/.ssh/authorized_keys
由于您只能使用puclic密钥身份validation,因此请修改服务器计算机中的/etc/ssh/sshd_config文件,如下所示:
PubkeyAuthentication yes HostbasedAuthentication no ChallengeResponseAuthentication no GSSAPIAuthentication no PasswordAuthentication no
重新启动sshd守护进程,你应该没问题。