LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   How do you turn off login banner for non-interactive ssh? (https://www.linuxquestions.org/questions/linux-security-4/how-do-you-turn-off-login-banner-for-non-interactive-ssh-470516/)

PeterGodward 12-13-2016 01:27 PM

Remove the motd
 
Try removing /etc/motd
There is an option in /etc/sshd_config to PrintMotd no which if turned to yes prints the Message Of The Day twice.

c0wb0y 12-13-2016 02:24 PM

Rather than removing the motd file, why don't you configure sshd not to print motd?

Habitual 12-13-2016 03:15 PM

Code:

-q      Quiet mode.  Causes most warning and diagnostic messages to be suppressed.
Guess where?

Habitual 12-13-2016 03:18 PM

Code:

man ssh
...
-q      Quiet mode.  Causes most warning and diagnostic messages to be suppressed.

Code:

ssh -q user@host

pingu_penguin 12-14-2016 02:19 AM

I thought it was as simple as

# touch .hushlogin

in the users home folder ?

Habitual 12-14-2016 08:18 AM

Quote:

Originally Posted by pingu_penguin (Post 5641964)
I thought it was as simple as

# touch .hushlogin

in the users home folder ?

Giving away all our secrets? :rolleyes:

pingu_penguin 12-14-2016 02:35 PM

You can never beat americans at sarcasm , can you ?

:)


All times are GMT -5. The time now is 06:13 PM.