大网数据广告活动
服务器运维问答

SSH painfully slow on my local network?

· 52CE 我爱测

I have a CentOS 6-x64 Server running through VirtualBox on Windows Server 2012R2, but whenever I SSH into it, it's painfully slow. This happens for both Putty on Windows, and SSH on OS X. I've read through countless of posts abou…

问题原文

原帖链接 · ecnepsnai · CC BY-SA 3.0

I have a CentOS 6-x64 Server running through VirtualBox on Windows Server 2012R2, but whenever I SSH into it, it's painfully slow. This happens for both Putty on Windows, and SSH on OS X. I've read through countless of posts about slow login, but this is just an all-around sluggishness.

These are the things I have checked:

  • I've disabled DNS for sshd
  • I'm connecting using an IP address on the same subnet
  • There isn't massive traffic going to or from the host machine

社区高分解答

原帖链接 · Mathieu Borderé · CC BY-SA 4.0

Because this is pretty high in Google search results, here's my stab. I fixed sluggish ssh and high ping latencies on my local WiFi network by turning off WiFi Power Saver (on Linux) but might be applicable to other OS's too.

sudo iwconfig wlan0 power off

Replace wlan0 with the name of your wireless interface if it's different. You'll have to make this change permanent by adapting systemd or other configs (see e.g. https://unix.stackexchange.com/questions/269661/how-to-turn-off-wireless-power-management-permanently)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-03-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。