windows - Openssh 突然无法在我的 Windows 上运行
问题描述
我使用 git bash 登录以打开托管在 Windows 机器中的 ssh 服务器,我使用的命令是
ssh -D 127.0.0.1:8080 user@ssh-server -i ssh_host_rsa_key -vvv
OpenSSH_7.1p2, OpenSSL 1.0.2g 1 Mar 2016
dsa-sha2-nistp521
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
/c/Users/zhjun/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from cn-zhjun-w10
debug3: hostkeys_foreach: reading file "/c/Users/zhjun/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /c/Users/zhjun/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from 10.172.18.113
debug1: Host 'cn-zhjun-w10' is known and matches the ECDSA host key.
debug1: Found key in /c/Users/zhjun/.ssh/known_hosts:1
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: ssh_host_rsa_key (0x60006bc70), explicit
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: start over, passed a different list publickey,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: ssh_host_rsa_key
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug2: input_userauth_pk_ok: fp SHA256:sZstaNxene7qmdvgfK91zjtQQ4Oeqb+aS9X7//paJo4
debug3: sign_and_send_pubkey: RSA SHA256:sZstaNxene7qmdvgfK91zjtQQ4Oeqb+aS9X7//paJo4
debug1: Authentications that can continue: publickey,keyboard-interactive
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: userauth_kbdint: disable: no info_req_seen
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,keyboard-interactive).
它在过去几个月有效,但突然无法正常工作..
解决方案
也许你应该确保你的公钥包含在目标机器上的 .ssh/authorized_keys 文件中。
其他方法是更改远程服务器中的sshd_config文件并将PasswordAuthentication从no设置为yes并重新启动 ssh 守护进程
推荐阅读
- python - Jupyter Lab 在内存不足时冻结计算机 - 如何防止它?
- excel - Excel,高级过滤器多个条件(和,包含)不起作用
- python - rpy2 3.2.0 on python 3.7 问题 w/importing robjects
- iis - 是否可以/建议使用同一个域帐户运行多个站点应用程序池
- swift - 拖动 UITableView 或所有 TableViewCell 显示标签
- kotlin - 在 Kotlin 中以 O(n) 时间以纯函数式编程风格计算所有前缀和
- r - 无法在 R 中绘制 sf 线串:CPL_geos_is_empty 中的错误(st_geometry(x))
- node.js - iceConnectionState:“检查”如何解决
- azure - Azure 中的意外 RAM 消耗
- calendar - 如何在 AutoSys 中创建一个始终在每年 11 月 1 日运行的扩展日历,无论它是假期还是周末?