其他帖子已经谈到使用/etc/ssh/sshd_config来更改授权设置。
如果我想连接此密码,我应该将sshd_config设置为启用哪些授权设置?
jacobs-mbp:~ nuevo$ ssh username@141.158.1.6
The authenticity of host '141.158.1.6 (142.158.1.6)' can't be established.
RSA key fingerprint is b1:0b:cn:o7:6b:f1:22:c5:x5:d1:f8:d2:63:d8:b2:2l.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '141.158.1.6' (RSA) to the list of known hosts.
Password:
Password:
Password:
Permission denied (publickey,keyboard-interactive).
http://www.faqs.org/docs/securing/chap15sec122.html
以下是更改它的步骤:
su
Password:
cd /private/etc
vi sshd_config
现在键入此项以搜索PasswordAuthentication
:
/PasswordAuth <Enter>
现在按几次h
移动到行的最左边,您就在#
上
现在按x
删除#
现在键入以下内容进行写入并退出:
:wq <Enter>
如果你在编辑器中的任何时候都被卡住或丢失了,请键入以下内容退出而不保存
:q! <Enter>