Sun OS 5.10 not honoring .hushlogin

0

1

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?

Stu

Posted 2010-06-10T15:15:24.757

Reputation: 1 044

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 – 2010-06-10T17:38:56.180

Answers

0

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

Stefan Lasiewski

Posted 2010-06-10T15:15:24.757

Reputation: 2 881

yea this works for ssh, but not for scp, but hey, better than nothing, thanks. – Stu – 2010-06-14T02:39:54.257

1

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

user1686

Posted 2010-06-10T15:15:24.757

Reputation: 283 655

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 – 2010-06-29T21:27:58.090