我试图让科莫多连接到远程服务器。 然而,据我所知,科莫多不支持公共ssh密钥。 我编辑了/ etc / ssh / sshd_config文件并设置了这两个文件
PasswordAuthentication yes PubkeyAuthentication yes
但是,当我尝试连接时,我不断收到以下消息:
Error: 'Remote SSH server does not allow password authentication. Allowed types are: u'publickey''
我怎样才能设置服务器,以便它接受这两种types的身份validation? 注意:我正在使用Ubuntu。
你的configuration看起来不错。 一旦你改变了sshd_config文件,你需要重新启动sshd,以便它可以读取新的configuration。
通常情况下,密钥和密码validation是默认启用的。 检查这个选项是否可用(可能在key-authconfiguration期间被禁用):
ChallengeResponseAuthentication yes # default PasswordAuthentication yes # default UsePAM yes # default
如果这不起作用,请尝试使用-v(-vv或-vvv)选项进行ssh。
而虚拟的问题:改变configuration后重新启动sshd?