OS X 忽略 sshd_config

Ann*_*ann 1 osx encryption sshd

我试图从我的 openSSH 安装中删除一些密码:

ssh -Q cipher

3des-cbc
blowfish-cbc
cast128-cbc
arcfour
arcfour128
arcfour256
aes128-cbc
aes192-cbc
aes256-cbc
rijndael-cbc@lysator.liu.se
aes128-ctr
aes192-ctr
aes256-ctr
aes128-gcm@openssh.com
aes256-gcm@openssh.com
chacha20-poly1305@openssh.com
Run Code Online (Sandbox Code Playgroud)

我试图通过编辑配置文件来删除,例如,blowfish-cbc:

vi /etc/ssh/sshd_config
Run Code Online (Sandbox Code Playgroud)

并添加以下任一行:

Ciphers -blowfish-cbc
Run Code Online (Sandbox Code Playgroud)

或者

Ciphers [comma separated list of all other ciphers except for blowfish-cbc]
Run Code Online (Sandbox Code Playgroud)

但是,在系统重新启动或卸载/加载 SSH 时,仍会在 ssh -Q 密码中报告 blowfish-cbc。

我究竟做错了什么?

OS X 版本:10.11.6

Ipo*_*cer 8

sshd_config不仅影响了ssh守护进程,而你正在测试的ssh客户端,它使用ssh_config