Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 在“中删除或附加KexalGorthms或hostkeyalgorithms”/etc/ssh/sshd“u config”;_Linux_Encryption_Sshd - Fatal编程技术网

Linux 在“中删除或附加KexalGorthms或hostkeyalgorithms”/etc/ssh/sshd“u config”;

Linux 在“中删除或附加KexalGorthms或hostkeyalgorithms”/etc/ssh/sshd“u config”;,linux,encryption,sshd,Linux,Encryption,Sshd,我需要修改“/etc/ssh/sshd_config”中kexalgoriths或hostkeyalgoriths的默认列表,方法是显式地提到不需要的算法和需要的算法 说明:- 如果指定的值以“+”字符开头,则指定的方法将附加到默认集,而不是替换它们。如果指定的值以“-”字符开头,则指定的方法(包括通配符)将从默认集中删除,而不是替换它们 例如:我只需要从默认列表中删除diffie-hellman*,所以在“/etc/ssh/sshd_-config”中,我分别尝试了这3种语法 KexAlgor

我需要修改“/etc/ssh/sshd_config”中kexalgoriths或hostkeyalgoriths的默认列表,方法是显式地提到不需要的算法和需要的算法

说明:- 如果指定的值以“+”字符开头,则指定的方法将附加到默认集,而不是替换它们。如果指定的值以“-”字符开头,则指定的方法(包括通配符)将从默认集中删除,而不是替换它们

例如:我只需要从默认列表中删除diffie-hellman*,所以在“/etc/ssh/sshd_-config”中,我分别尝试了这3种语法

KexAlgorithms -diffie-hellman*
KexAlgorithms -"diffie-hellman*"
KexAlgorithms "-diffie-hellman*"
但是,这些语法都不起作用