0

其他帖子讨论了使用 /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

4

1 回答 1

1

以下是更改它的步骤:

su
Password:
cd /private/etc
vi sshd_config

现在输入这个来搜索PasswordAuthentication

/PasswordAuth    <Enter>

现在按h几次移动到行的最左边,你就在#

现在按x删除#

现在键入以下内容以编写并退出:

:wq  <Enter>

如果您在编辑器中的任何时候卡住或迷路,请键入以下内容以退出而不保存

:q!    <Enter>
于 2014-08-28T08:33:47.813 回答