Ssh异常处理 Permission Denied

ssh异常处理 Permission denied (publickey,keyboard-interactive).

  • 异常解决办法
    设置sshd的配置文件(sshd_config)的这条配置:PasswordAuthentication yes
    然后重启服务:service sshd restart
  • sshd 错误找不到 -bash: service: command not found
    1
    2
    3
    4
    $ whereis sshd
    sshd: /usr/sbin/sshd //获取路径
    # 重启
    /usr/sbin/sshd restart