How can I prevent my OpenSSH client from printing its version string when someone connecting with ssh -v (verbose mode)?
I don’t want this version banner to be printed during verbose mode. I’ve searched and found that this version string is part of the SSH protocol and not easily configurable.
ssh -v [email protected] :
OpenSSH_9.6p1 Ubuntu-3ubuntu13.14, OpenSSL 3.0.13 30 Jan 2024 debug1 ...
ssh -vhas always been the client's version. There are lines which show the server's version, but they look likedebug1: Remote protocol version 2.0, remote software version OpenSSH_9.6p1 Ubuntu-3ubuntu13.14,debug1: compat_banner: match: OpenSSH_9.6p1 Ubuntu-3ubuntu13.14 pat OpenSSH* compat 0x04000000, etc.-verbose flag. This is the local ssh version, so anyone who can run it is already logged in, already has access, can already runssh -Vto get the same thing, so if you don't want it, just don't use-vand that's it. There's no security issue here.