1. To run sshd in debug mode as a one time instance without affecting other users:
# /usr/sbin/sshd -ddd -D -p (port) 2>&1 | awk '{ print strftime("%T: "), $0; fflush(); }' | tee sshd.log
2. On the client end run add -p (port) to the ssh command line
# ssh -p (port)
OR
1. Open the `/etc/ssh/sshd_config` file in a text editor
# vim /etc/ssh/sshd_config
2. Add the following line and save the file
LogLevel DEBUG3
3. Restart SSHD
# service sshd restar
Recent Comments