如何在Linux Redhat中将sshdconfiguration重置为默认configuration

我需要第一个版本的SSHconfiguration。 位于/etc/ssh/sshd_config 。 不幸的是,当前的sshconfiguration已经被其他开发者改变了几次,很难理解被修改的是什么。 我不知道是否有任何方法来重置默认的sshconfiguration,或者如果有人拥有sshconfiguration的内容,如果你可以分享它。

只需将文件移走/删除并重新安装适当的软件包即可。

 $ rpm -qf /etc/ssh/sshd_config # to find out what package owns the file openssh-server $ mv /etc/ssh/sshd_config{,.old} # backup the modified version $ yum reinstall openssh-server # will create the file with default configuration