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.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityyou 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
-v
arguments tossh
.pkill -INFO ssh
make it print status, modeled afterdd
. They might see a value to it.