ssh:tldr:18c29
The command "sshd -D -d" is used to start the SSH daemon (sshd) in debug mode with additional debugging level enabled.
Explanation of the options used:
-
"sshd": It is the command to start the SSH daemon.
-
"-D": This option tells the SSH daemon to run in the foreground. By default, sshd runs as a daemon (background process), but using this option, it runs in the current shell session allowing you to see the debug output on the terminal.
-
"-d": This option turns on debugging mode and increases the verbosity level. It enables debug logging output, providing more detailed information for troubleshooting purposes. It can be useful for debugging connection issues or to monitor the SSH daemon's behavior.
By running "sshd -D -d", you will start the SSH daemon in the foreground, and it will produce detailed debug logs on the terminal, allowing you to diagnose any issues or understand the internal workings of the SSH daemon.