ssh: suppress Banners of Jumphosts

593 Views Asked by At

Gday Everyone,

i am using ssh with jumphost(s).

ssh -J zone1-jumphost zone2-target

or .ssh/config:

HOST zone1-* zone2-* !zone1-jumphost
   ProxyJump zone1-jumphost

All servers (jumphost(s) and target) are configured to print out an issue message like "Authorized access only!". I can suppress the target servers message with the option '-q'.

But how can i suppress the message created by the jumphost(s)?

1

There are 1 best solutions below

4
On BEST ANSWER

You can create an empty file on the target server in your users home directory called ~/.hushlogin and it will stop the message of the day from displaying.

Just connect and run touch ~/.hushlogin and the next time you log in it should be suppressed.