March 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

March 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

sshd debug

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

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>