在 .ssh/config 中指定密码和协议 2

在 .ssh/config 中指定密码和协议 2

我希望能够在我的.ssh/config文件中指定 ssh 使用协议 2(命令行参数-2),以及使用哪些密码。

以下似乎不起作用(我得到了错误的配置选项Cyphers:)

Host XXX
    HostName YYYY
    User ZZZZ
    Compression no
    Cyphers arcfour,blowfish-cbc
    ControlPath ~/.ssh/%r@%h:%p
    IdentityFile ~/.ssh/seas/id_rsa

另外,我如何知道我正在使用哪个版本的 ssh(或 OpenSSH)?which ssh或者man ssh没有透露太多信息。

答案1

  • Cyphers应该输入Ciphers
  • 要指定协议,请使用语法:Protocol X其中 X 可以122是默认值)

尝试man ssh_config

相关内容