为什么Firefox在SSH上这么慢?

Modified on: Fri, 13 Jul 2018 18:37:30 +0800

我尝试使用

通过SSH启动Firefox

ssh -X user@hostname

然后

firefox -no-remote

但它非常慢。

我该如何解决这个问题?这是连接问题吗?

作者:TRiG,DevOps85

最佳答案

默认的ssh设置会导致连接速度很慢。请尝试以下方法:

ssh -YC4c arcfour,blowfish-cbc user@hostname firefox -no-remote

使用的选项是:

-Y      Enables trusted X11 forwarding.  Trusted X11 forwardings are not
subjected to the X11 SECURITY extension controls.
-C Requests compression of all data (including stdin, stdout,
stderr, and data for forwarded X11 and TCP connections). The
compression algorithm is the same used by gzip(1), and the
“level” can be controlled by the CompressionLevel option for pro‐
tocol version 1. Compression is desirable on modem lines and
other slow connections, but will only slow down things on fast
networks. The default value can be set on a host-by-host basis
in the configuration files; see the Compression option.
-4 Forces ssh to use IPv4 addresses only.
-c cipher_spec
Selects the cipher specification for encrypting the session. For protocol version 2, cipher_spec is a comma-separated list of
ciphers listed in order of preference. See the Ciphers keyword
in ssh_config(5) for more information.

这里的要点是使用不同的加密密码,在这种情况下,arcfour比默认值更快,并压缩正在传输的数据。


注意:我离这位专家非常非常远。上面的命令是我在某个博客文章中找到它后使用的,我注意到速度的巨大提升。我相信下面的各个评论者都知道他们在谈论什么,而且这些加密密码可能不是最好的。这个答案唯一真正相关的部分很可能是使用-C开关来压缩正在传输的数据。

作者:,terdon

最新文章

  1. 在ESXi 5.x 和 ESXi 6.0.x 中如何安装第三方供应商开发的驱动程序
  2. SDRAM控制器的Verilog建模之一
  3. Amoeba For MySQL读写分离
  4. 手把手教你修改iOS版QQ的运动步数
  5. php array(object) 与xml相互转换
  6. [转]如何下载tizen源码(图文教程)?
  7. SSIS结合BCP及SQL Server作业实现定时将数据导出打包实现数据同步
  8. HTML5中的服务器‘推送’技术 -Server-Sent Events
  9. CCRenderBuffer初始化中的render state参数
  10. 在 Linux 下用 mkdir 命令来创建目录和子目录
  11. 中文分词实战——基于jieba动态加载字典和调整词频的电子病历分词
  12. iOS UIView 选择性倒角
  13. swoole之代码热更新实现 转自https://blog.csdn.net/nep_tune/article/details/81329918
  14. Unity3D安卓打包
  15. JavaScript三种弹出框(alert,confirm和prompt)用法举例
  16. Fixation index
  17. export命令
  18. 等到花儿也谢了的await
  19. CentOS系统时间与现在时间相差8小时解决方法
  20. 排序算法之快速排序Java实现

热门文章

  1. C# System.IO和对文件的读写操作
  2. 搜狗浏览器总是打开123.sogou.com-记搜狗浏览器遭遇劫持一例
  3. [UE4]VR成像原理
  4. 从Tomcat的处理web请求分析Java的内存模型
  5. gradle重复依赖终极方案解决办法
  6. Spring线程池的5个要素
  7. python字符串前面的r/u/b的意义 (笔记)
  8. python TKinter部分记录
  9. pyqt---------事件与信号处理
  10. IDEA(MAC) 快捷键