zoukankan      html  css  js  c++  java
  • 为什么Firefox在SSH上这么慢?

    为什么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
  • 相关阅读:
    建立文件结构
    PCL类的设计结构
    如何编写新的PCL类
    PCL推荐的命名规范(2)
    PCL推荐的命名规范(1)
    PCL中异常处理机制
    如何增加新的PointT类型
    hdoj 1728 逃离迷宫
    ny710 外星人的供给站
    ny714 Card Trick
  • 原文地址:https://www.cnblogs.com/zafu/p/9392498.html
Copyright © 2011-2022 走看看