Ssh – Current SSH connection properties (cipher, auth type, timeout, etc)

opensshsshssh-tunneling

After a connection is established with SSH, how we can get the current connection properties ?

Is there a way to know what cipher(s) is being used ? Properties of the authentication ? Protocol version, timeouts and so on.

Best Answer

you can enable verbose more logging for sshd:

sudo nano /etc/ssh/sshd_config

add line

LogLevel   VERBOSE

and restart sshd

sudo systemctl restart ssh

view log entry

journalctl -u sshd |tail -100
Related Question