
$/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因“没有支持的密钥交换算法”错误而关闭所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)