从Unix运营商远程访问

时间:2014-08-28 07:53:06

标签: unix ssh authorization remote-access remote-host

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

1 个答案:

答案 0 :(得分:0)

以下是更改它的步骤:

su
Password:
cd /private/etc
vi sshd_config

现在输入此内容以搜索PasswordAuthentication

/PasswordAuth    <Enter>

现在按h几次以移动到该行的最左侧,您就在#

现在按x删除#

现在输入以下内容进行编写和退出:

:wq  <Enter>

如果您在编辑器中的任何位置卡住或丢失,请键入以下内容以退出而不保存

:q!    <Enter>