LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-13-2016, 01:27 PM   #16
PeterGodward
LQ Newbie
 
Registered: Dec 2016
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 12-13-2016, 02:24 PM   #17
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Rather than removing the motd file, why don't you configure sshd not to print motd?
 
Old 12-13-2016, 03:15 PM   #18
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
-q      Quiet mode.  Causes most warning and diagnostic messages to be suppressed.
Guess where?
 
Old 12-13-2016, 03:18 PM   #19
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
man ssh
...
-q      Quiet mode.  Causes most warning and diagnostic messages to be suppressed.
Code:
ssh -q user@host

Last edited by Habitual; 12-13-2016 at 03:18 PM. Reason: slow http response
 
1 members found this post helpful.
Old 12-14-2016, 02:19 AM   #20
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 350

Rep: Reputation: 60
I thought it was as simple as

# touch .hushlogin

in the users home folder ?
 
Old 12-14-2016, 08:18 AM   #21
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by pingu_penguin View Post
I thought it was as simple as

# touch .hushlogin

in the users home folder ?
Giving away all our secrets?
 
Old 12-14-2016, 02:35 PM   #22
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 350

Rep: Reputation: 60
You can never beat americans at sarcasm , can you ?

 
  


Reply

Tags
banner, ssh



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup system Login banner and Login message 06-03-05 Linux - Newbie 13 07-24-2020 02:05 PM
hide ssh banner shafey Linux - Security 3 04-14-2013 05:59 PM
SSH Login Banner Display raiden4201 Linux - Newbie 11 12-08-2008 04:41 PM
non-interactive ssh podollb Linux - Software 3 04-20-2004 03:28 PM
change the banner for ssh [cacheflow] Linux - Security 5 09-16-2002 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration