zoukankan      html  css  js  c++  java
  • ssh客户端配置

    基本上,ssh客户端的详细设定都放在 /etc/ssh/ssh_config 里面!

    “/etc/ssh/ssh_config” 文件是OpenSSH系统范围的配置文件,允许你通过设置不同的选项来改变客户端程序的运行方式。

    这个文件的每一行包含“关键词-值”的匹配,其中“关键词”是忽略大小写的。下面列出来的是最重要的关键词,用man命令查看帮助页(ssh (1))可以得到详细的列表。

    # Site-wide defaults for various options
    Host *
    ForwardAgent no
    ForwardX11 no
    RhostsAuthentication no
    RhostsRSAAuthentication no
    RSAAuthentication yes
    PasswordAuthentication yes
    FallBackToRsh no
    UseRsh no
    BatchMode no
    CheckHostIP yes
    StrictHostKeyChecking no
    IdentityFile ~/.ssh/identity
    Port 22
    Cipher blowfish
    EscapeChar ~

    下面逐行说明上面的选项设置:

    Host *
    选项“Host”只对能够匹配后面字串的计算机有效。“*”表示所有的计算机。

    ForwardAgent no
    “ForwardAgent”设置连接是否经过验证代理(如果存在)转发给远程计算机。

    ForwardX11 no
    “ForwardX11”设置X11连接是否被自动重定向到安全的通道和显示集(DISPLAY set)。

    RhostsAuthentication no
    “RhostsAuthentication”设置是否使用基于rhosts的安全验证。

    RhostsRSAAuthentication no
    “RhostsRSAAuthentication”设置是否使用用RSA算法的基于rhosts的安全验证。

    RSAAuthentication yes
    “RSAAuthentication”设置是否使用RSA算法进行安全验证。

    PasswordAuthentication yes
    “PasswordAuthentication”设置是否使用口令验证。

    FallBackToRsh no
    “FallBackToRsh”设置如果用ssh连接出现错误是否自动使用rsh。

    UseRsh no
    “UseRsh”设置是否在这台计算机上使用“rlogin/rsh”。

    BatchMode no
    “BatchMode”如果设为“yes”,passphrase/password(交互式输入口令)的提示将被禁止。当不能交互式输入口令的时候,这个选项对脚本文件和批处理任务十分有用。

    CheckHostIP yes
    “CheckHostIP”设置ssh是否查看连接到服务器的主机的IP地址以防止DNS欺骗。建议设置为“yes”。

    StrictHostKeyChecking no
    “StrictHostKeyChecking”如果设置成“yes”,ssh就不会自动把计算机的密匙加入“$HOME/.ssh/known_hosts”文件,并且一旦计算机的密匙发生了变化,就拒绝连接。

    IdentityFile ~/.ssh/identity
    “IdentityFile”设置从哪个文件读取用户的RSA安全验证标识。

    Port 22
    “Port”设置连接到远程主机的端口。

    Cipher blowfish
    “Cipher”设置加密用的密码。

    EscapeChar ~
    “EscapeChar”设置escape字符。

     转自 http://firesk.blog.51cto.com/180373/51776

  • 相关阅读:
    Linq 中 表连接查询
    Html Div 拖拽
    持续集成:TestNG中case之间的关系
    测试技术培训:如何测试磁盘写的速度
    POPTEST 测试开发 免费培训课程报名
    接上文 下面是一段示例代码
    老李分享:android手机测试之适配(1)
    (转)POPTEST创始人李爱然:谢谢,帮助我的朋友!!!!
    性能调优之SQL优化
    大数据测试之Hadoop的基本概念
  • 原文地址:https://www.cnblogs.com/ggjucheng/p/2646038.html
Copyright © 2011-2022 走看看