我正在尝试测试按键尝试的顺序。系统的用户之一正在使用DSA,因此我正在尝试对其进行测试。我得到一个Bad key types
。
$ ssh -vv -p 1522 jwalton@192.168.1.11
OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015
debug1: Reading configuration data /Users/jwalton/.ssh/config
/Users/jwalton/.ssh/config line 2: Bad key types 'ssh-ed25519,ecdsa-sha2-nistp256,ssh-dsa,ssh-rsa'.
我将范围缩小到ssh-dsa
。根据ssh_config(5)
(它实际上是的一部分sshd_config(5)
,但ssh_config
在OpenSSH 7.0发行说明中列为新功能):
The -Q option of ssh(1) may be used to list supported key types.
但是,我似乎无法使其正常工作:
riemann::~$ ssh -Q
/usr/local/bin/ssh: option requires an argument -- Q
riemann::~$ ssh -Q dsa
Unsupported query "dsa"
riemann::~$ ssh -Q ssh-dsa
Unsupported query "ssh-dsa"
riemann::~$ ssh -Q ed25529
Unsupported query "ed25529"
riemann::~$ ssh -Q ssh-ed25529
Unsupported query "ssh-ed25529"
riemann::~$ ssh -Q PubkeyAcceptedKeyTypes
Unsupported query "PubkeyAcceptedKeyTypes"
如何使用该ssh -Q
选项?
ssh-dsa的密钥类型是什么?