如何在 ssh_config(5) 中查找密码关键字

如何在 ssh_config(5) 中查找密码关键字

我在 ssh 的手册页中看到,我可以在“ssh_config(5)”中找到密码列表

我在哪里可以找到这个?

上下文:我试图通过 ssh \ sftp 进入一家公司提供给我的 sftp 帐户。我收到以下消息:

“无法与 XXX.XXX.XXX.XXX 端口 XX 协商:未找到匹配的密码。他们的提议是:aes256-cbc、3des-cbc、aes128-cbc”

我认为将我的密码更改为 aes 256-cbc 将解决我的问题。

亲切的问候 :)

答案1

它告诉您查找在线手册ssh_config中的页面,即:5man 5 ssh_config

 Ciphers
         Specifies the ciphers allowed for protocol version 2 in order of
         preference.  Multiple ciphers must be comma-separated.  If the
         specified value begins with a ‘+’ character, then the specified
         ciphers will be appended to the default set instead of replacing
         them.

         The supported ciphers are:

               3des-cbc
               aes128-cbc
               aes192-cbc
               aes256-cbc
               aes128-ctr
               aes192-ctr
               aes256-ctr
               [email protected]
               [email protected]
               arcfour
               arcfour128
               arcfour256
               blowfish-cbc
               cast128-cbc
               [email protected]

         The default is:

               [email protected],
               aes128-ctr,aes192-ctr,aes256-ctr,
               [email protected],[email protected],
               aes128-cbc,aes192-cbc,aes256-cbc,3des-cbc

         The list of available ciphers may also be obtained using the -Q
         option of ssh(1) with an argument of “cipher”.

如其中所述,您还可以使用ssh -Q cipher

$ ssh -Q cipher
3des-cbc
blowfish-cbc
cast128-cbc
arcfour
arcfour128
arcfour256
aes128-cbc
aes192-cbc
aes256-cbc
[email protected]
aes128-ctr
aes192-ctr
aes256-ctr
[email protected]
[email protected]
[email protected]

相关内容