OpenSSH普通使用者無法登入的幾種情況的解決方法

huzhenwei發表於2012-04-22

1 驗證方式不支援

  如客戶端登入時提示如下:

    [huzw@CentOS-6-37 ~]$ ssh monitor@192.168.1.5

    Permission denied (publickey,keyboard-interactive).

  解決方法:

    設定sshd的配置檔案(sshd_config)的這條配置:PasswordAuthentication yes

    然後重啟服務:service sshd restart


2 普通使用者登入密碼始終錯誤,sshd啟動有報錯

  sshd啟動報錯:

    Unsupported option GSSAPIAuthentication
    Unsupported option GSSAPICleanupCredentials

  解決方法:

    登出sshd的配置檔案(sshd_config)的如下配置:

    #GSSAPIAuthentication yes
    #GSSAPICleanupCredentials yes
    #UsePAM yes

    然後重啟服務:service sshd restart

相關文章