Ubuntu 16.04 终端 SSH 客户端速度慢 - 与 Windows Putty SSH 客户端相比

Ubuntu 16.04 终端 SSH 客户端速度慢 - 与 Windows Putty SSH 客户端相比

我在同一位置有两台“客户端”PC,通过 ssh 访问基于 AWS 的 Ubuntu 14 标准映像机的终端。一台“客户端”机箱是 Ubuntu 16,另一台是 Windows 8。

在 Windows 客户端上,我使用标准下载 putty 0.63、连接类型 SSH 单选按钮、指向我的 .ppk 文件的私钥文件身份验证。

在 Ubuntu 客户端上,也安装了操作系统的标准配置,我使用终端和“ssh -i”进入 AWS 机器的终端。

当我正在处理本地文件和进程时,putty 窗口飞快地闪过。Ubuntu ssh 终端连接很慢,并且会定期挂起几秒钟。

由于两台“客户端”机器都位于同一个网络上 - Ubuntu 机器上的 ssh 设置存在一些问题,与 Windows-Putty 客户端相比,它的性能非常差。我已将客户端 ssh 升级到 hpn-ssh,并根据建议设置了 TCP 和 ssh 选项;我使用“-x”和“-C” - 真的没什么用。

例如,当我输入“sudo”并按下空格键时,终端会停止一小段时间,然后跳到空格键。同样,光标在 vim 等软件中的移动会定期冻结,尤其是在工作一段时间后。putty 日志如下。我想知道如何让 OpenSSH 做出类似的行为,或者是否有其他推荐的 ssh 工具我应该在 Ubuntu 客户端上使用,以便有效地 ssh 到基于 AWS 的 Ubuntu 实例?

2016-09-26 17:34:18 Looking up host "52.32.3.xxx" 2016-09-26 17:34:18 Connecting to 52.32.3.xxx port 22 2016-09-26 17:34:18 Server version: SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7 2016-09-26 17:34:18 Using SSH protocol version 2 2016-09-26 17:34:18 We claim version: SSH-2.0-PuTTY_Release_0.63 2016-09-26 17:34:18 Doing Diffie-Hellman group exchange 2016-09-26 17:34:18 Doing Diffie-Hellman key exchange with hash SHA-256 2016-09-26 17:34:20 Host key fingerprint is: 2016-09-26 17:34:20 ssh-rsa 2048 ...:...:... 2016-09-26 17:34:20 Initialised AES-256 SDCTR client->server encryption 2016-09-26 17:34:20 Initialised HMAC-SHA-256 client->server MAC algorithm 2016-09-26 17:34:20 Initialised AES-256 SDCTR server->client encryption 2016-09-26 17:34:20 Initialised HMAC-SHA-256 server->client MAC algorithm 2016-09-26 17:34:20 Reading private key file "C:\Users\...\AWSSetup.ppk" 2016-09-26 17:34:23 Offered public key 2016-09-26 17:34:23 Offer of public key accepted 2016-09-26 17:34:23 Sent public key signature 2016-09-26 17:34:23 Access granted 2016-09-26 17:34:23 Opening session as main channel 2016-09-26 17:34:23 Opened main channel 2016-09-26 17:34:23 Local port 8080 SOCKS dynamic forwarding 2016-09-26 17:34:24 Allocated pty (ospeed 38400bps, ispeed 38400bps) 2016-09-26 17:34:24 Started a shell/command

相关内容