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

时间:2015-07-01 11:18:06

标签: ssh openssl

我正在尝试使用 ssh 客户端(client_host)连接到运行 sshd2 的linux主机(target_host);这样做时我将client_host的pub键转换为

ssh-keygen -e -f id_rsa.pub > client_host_ssh2_id_rsa.pub

并将 client_host_ssh2_id_rsa.pub 复制到target_host。 但是,当我尝试连接时,我得到“没有hostkey alg”

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

有人可以帮我确定一下我在这里缺少什么。

0 个答案:

没有答案