linux – sshd因“没有支持的密钥交换算法”错误而关闭

linux – sshd因“没有支持的密钥交换算法”错误而关闭,第1张

概述sshd的 $/usr/sbin/sshd -f testconfig -p 22025 -ddebug1: sshd version OpenSSH_5.2p1debug1: private host key: #0 type 0 RSA1debug1: read PEM private key done: type RSAdebug1: private host key: #1 ty sshd的
$/usr/sbin/sshd -f testconfig -p 22025 -ddeBUG1: sshd version OpenSSH_5.2p1deBUG1: private host key: #0 type 0 RSA1deBUG1: read PEM private key done: type RSAdeBUG1: private host key: #1 type 1 RSAdeBUG1: read PEM private key done: type DSAdeBUG1: private host key: #2 type 2 DSAdeBUG1: setgroups() Failed: Operation not permitteddeBUG1: rexec_argv[0]='/usr/sbin/sshd'deBUG1: rexec_argv[1]='-f'deBUG1: rexec_argv[2]='testconfig'deBUG1: rexec_argv[3]='-p'deBUG1: rexec_argv[4]='22025'deBUG1: rexec_argv[5]='-d'deBUG1: Bind to port 22025 on 127.0.0.1.Server Listening on 127.0.0.1 port 22025.Generating 1024 bit RSA key.RSA key generation complete.deBUG1: fd 4 clearing O_NONBLOCKdeBUG1: Server will not fork when running in deBUGging mode.deBUG1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7deBUG1: inetd sockets after dupPing: 3,3Connection from 127.0.0.1 port 58477deBUG1: ClIEnt protocol version 2.0; clIEnt software version OpenSSH_5.5deBUG1: match: OpenSSH_5.5 pat OpenSSH*deBUG1: Enabling compatibility mode for protocol 2.0deBUG1: Local version string SSH-2.0-OpenSSH_5.2deBUG1: privsep_preauth: successfully loaded Seatbelt profile for unprivileged childdeBUG1: List_hostkey_types: No supported key exchange algorithmsdeBUG1: do_cleanupdeBUG1: do_cleanupdeBUG1: audit_event: unhandled event 12

SSH

$ssh dgl@127.0.0.1 -p 22025 -i ./ID_rsa.pub -vOpenSSH_5.5p1,OpenSSL 0.9.8o 01 Jun 2010deBUG1: Reading configuration data /Users/dgl/.ssh/configdeBUG1: Reading configuration data /opt/local/etc/ssh/ssh_configdeBUG1: Connecting to 127.0.0.1 [127.0.0.1] port 22025.deBUG1: Connection established.deBUG1: IDentity file ./ID_rsa.pub type 1deBUG1: IDentity file ./ID_rsa.pub-cert type -1deBUG1: Remote protocol version 2.0,remote software version OpenSSH_5.2deBUG1: match: OpenSSH_5.2 pat OpenSSH*deBUG1: Enabling compatibility mode for protocol 2.0deBUG1: Local version string SSH-2.0-OpenSSH_5.5deBUG1: SSH2_MSG_KEXINIT sentConnection closed by 127.0.0.1

ssh_config中

Protocol 1,2ListenAddress 127.0.0.1HostKey ./ssh_host_keyHostKey ./ssh_host_rsa_keyHostKey ./ssh_host_dsa_keyRSAAuthentication yesPubkeyAuthentication yes
解决方法 我只是遇到了同样的问题,通过将我的相对HostKey路径转换为绝对路径来解决它,即代替
HostKey ./ssh_host_key

放:

HostKey /home/dmitry/ssh_host_key

或者无论在哪里.

这个错误不是很有帮助吗?

总结

以上是内存溢出为你收集整理的linux – sshd因“没有支持的密钥交换算法”错误而关闭全部内容,希望文章能够帮你解决linux – sshd因“没有支持的密钥交换算法”错误而关闭所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/1041315.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-24
下一篇2022-05-24

发表评论

登录后才能评论

评论列表(0条)

    保存