Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I scp and ssh a zillion times a day, and because of our corporate policy I can't get rid of /etc/issue or /etc/motd on the destination machines. So whereas I just want to see the results of my scp or ssh, all I ever end up seeing is thousands of copies of the motd. .hushlogin doesn't seem to be honored. Any other ideas on how to get rid of the message display? Is there some sshd config setting I don't know about (though I probably couldn't change that either)? Is there some curiously sunos/solaris specific way to achieve the goal?

share|improve this question
Do you know if this is displayed using 'Banner /etc/issue' in sshd_config? This text may be displayed using different components of of the login process: 'Banner' is displayed by SSHD, /etc/motd is displayed after you login, /etc/issue is displayed by ...something else. If we know this, then we might be able to help you better. – Stefan Lasiewski Jun 10 '10 at 17:38
up vote 0 down vote accepted

If touch .hushlogin doesn't work on the remote host, try ssh -q which seems to work for me in some cases.

share|improve this answer
yea this works for ssh, but not for scp, but hey, better than nothing, thanks. – Stu Jun 14 '10 at 2:39

/etc/issue is displayed before any authentication, so it will always be displayed, interactive or sftp, with hushlogin or without.

share|improve this answer
correct, /etc/issue is displayed before authentication, however, ssh -q will suppress this, at least it does for me in Solaris 10 and Solaris 8. – TD1 Jun 29 '10 at 21:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .