Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用ssh客户端连接到运行ssh2服务器的主机_Ssh_Openssl - Fatal编程技术网

使用ssh客户端连接到运行ssh2服务器的主机

使用ssh客户端连接到运行ssh2服务器的主机,ssh,openssl,Ssh,Openssl,我正在尝试使用ssh客户端(客户端\u主机)连接到运行sshd2的linux主机(目标\u主机);执行此操作时,我将client_host的pub密钥转换为 ssh-keygen -e -f id_rsa.pub > client_host_ssh2_id_rsa.pub 并将客户端\u主机\u ssh2\u id\u rsa.pub复制到目标\u主机。 但是,当我尝试连接时,我得到了“无主机密钥alg” 有人能帮我确定我在这里遗漏了什么。Stack Overflow是一个关于编程和开发

我正在尝试使用ssh客户端(客户端\u主机)连接到运行sshd2的linux主机(目标\u主机);执行此操作时,我将client_host的pub密钥转换为

ssh-keygen -e -f id_rsa.pub > client_host_ssh2_id_rsa.pub
并将客户端\u主机\u ssh2\u id\u rsa.pub复制到目标\u主机。 但是,当我尝试连接时,我得到了“无主机密钥alg”


有人能帮我确定我在这里遗漏了什么。

Stack Overflow是一个关于编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参见帮助中心中的。也许或者会是一个更好的提问的地方。另请参阅。Stack Overflow是一个关于编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参见帮助中心中的。也许或者会是一个更好的提问的地方。另见。
ssh user@target_host -v
OpenSSH_5.1p1, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to target [169.35.74.21] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/identity type -1
debug1: identity file /home/user/.ssh/id_rsa type 1
debug1: identity file /home/user/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version 6.0.12.81 SSH  Tectia Server
debug1: no match: 6.0.12.81 SSH Tectia Server
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
no hostkey alg