僕の備忘録(PC、UN*X、ネットワーク関連が中心)なんです。
自分の書いたところは適当(な時とか)に書き換えますので御了承を。
sshで入ると、たまに出ていた。
$ sudo systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2017-10-19 09:46:45 JST; 3s ago Main PID: 16923 (sshd) Tasks: 1 (limit: 4915) CGroup: /system.slice/ssh.service └─16923 /usr/sbin/sshd -D Oct 19 09:46:45 newkuzu sshd[16923]: /etc/ssh/sshd_config line 19: Deprecated option KeyRegenerationInterval Oct 19 09:46:45 newkuzu sshd[16923]: /etc/ssh/sshd_config line 20: Deprecated option ServerKeyBits Oct 19 09:46:45 newkuzu sshd[16923]: /etc/ssh/sshd_config line 32: Deprecated option RSAAuthentication Oct 19 09:46:45 newkuzu sshd[16923]: /etc/ssh/sshd_config line 39: Deprecated option RhostsRSAAuthentication Oct 19 09:46:45 newkuzu sshd[16923]: Server listening on 0.0.0.0 port 22. Oct 19 09:46:45 newkuzu sshd[16923]: Server listening on :: port 22. Oct 19 09:46:45 newkuzu systemd[1]: Started OpenBSD Secure Shell server.
オプションを確認した限り、設定してなくても問題なさげに思えた。
で、コメントアウト。
$ sudo sed -i '19,20s/^/# /;32s/^/# /;39s/^/# /' /etc/ssh/sshd_config $ sudo sed -n '19p;20p;32p;39p' /etc/ssh/sshd_config # KeyRegenerationInterval 3600 # ServerKeyBits 1024 # RSAAuthentication yes # RhostsRSAAuthentication no
$ sudo systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2017-10-19 09:59:32 JST; 2s ago Main PID: 16964 (sshd) Tasks: 1 (limit: 4915) CGroup: /system.slice/ssh.service └─16964 /usr/sbin/sshd -D Oct 19 09:59:32 newkuzu systemd[1]: Starting OpenBSD Secure Shell server... Oct 19 09:59:32 newkuzu sshd[16964]: Server listening on 0.0.0.0 port 22. Oct 19 09:59:32 newkuzu sshd[16964]: Server listening on :: port 22. Oct 19 09:59:32 newkuzu systemd[1]: Started OpenBSD Secure Shell server.
リンクはご自由にどうぞ。でもURLや内容が変った場合はあしからず。