Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
deb9:ssh [2024/04/16 23:17] – [SSH Client and Server] Bernard Condraudeb9:ssh [2025/11/08 14:09] (current) – [Settings] Bernard Condrau
Line 9: Line 9:
   * Do the same for Windows Subsystem for Linux on Windows 10   * Do the same for Windows Subsystem for Linux on Windows 10
 ==== Settings ==== ==== Settings ====
-  * Modify /etc/ssh/sshd_conf:<code>Port 22+  * Modify /etc/ssh/sshd_config:<code>Port 22
 LoginGraceTime 20 LoginGraceTime 20
 AuthorizedKeysFile .ssh/authorized_keys AuthorizedKeysFile .ssh/authorized_keys
Line 22: Line 22:
 PrintLastLog yes PrintLastLog yes
 TCPKeepAlive yes</code> TCPKeepAlive yes</code>
-  * Restart the SSH server:<code>sudo /etc/init.d/ssh restart</code>+  * Restart the SSH server:<code>sudo service ssh restart</code>
  
 ===== Linux Host ===== ===== Linux Host =====