简体   繁体   中英

ssh: suppress Banners of Jumphosts

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)?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM