Forrest logo
back to the sshd tool

ssh:tldr:18c29

ssh: Run with verbose output (for debugging).
$ sshd -D -d
try on your machine

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.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the sshd tool