• 为什么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
  • 相关阅读:
    网站构建前期知识掌握
    Lucene学习之CURD
    Lucene学习之初步了解
    jQuery的extend详解
    jQuery和DOM对象之间的转换
    Tomcat教程
    Log4j配置
    Java学习之Java中常用对象
    Java学习之Comparable与Comparator的区别
    测试工具。
  • 原文地址:https://www.cnblogs.com/zafu/p/9392498.html
Copyright © 2020-2023  润新知