Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-04-2008, 04:08 PM   #1
LQ Newbie
Registered: Oct 2007
Location: Belgrade/Serbia
Posts: 5

Rep: Reputation: 0
Question SSH login message

this is maybe a stupid question, but still im newbie and i like to ask.
I'm interested .. how to change message that you get when you connect to the server via putty or other ssh client.
I get some anoying messages, and i want to turn them off.
Messages are something like this one
A racially integrated community is a chronological term timed from the
entrance of the first black family to the exit of the last white family.
-- Saul Alinsky

- s1cK -
Old 02-04-2008, 04:29 PM   #2
LQ Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
it-etch:~# cat /etc/ssh/sshd_config | grep issue
#Banner /etc/

Edit /etc/ for your message, then uncomment it in the sshd_config file..


what you are describing sounds more like fortune , which is a package you can uninstall...

Last edited by farslayer; 02-04-2008 at 04:32 PM.
Old 02-04-2008, 06:04 PM   #3
LQ Newbie
Registered: Feb 2008
Location: Philadelphia, PA
Distribution: Slackware, Kubuntu, BackTrack, Slax, LFS
Posts: 10

Rep: Reputation: 0

If this is just the same message everytime you login... it sounds like it is from MOTD (message of the day).
You can see an example here and what file it is and thus how you could alter it:

Last login: Tue Jan 15 22:49:52 2008 from 
root@server:~# cat /etc/motd
As the last comment said, it could also be fortune if you havce that installed which you could uninstall. If you aren't sure you could see if it is on your system. I would probably try:

root@server:~# updatedb && locate fortune
My guess is that if you are finding when you log in with SSH that it is your motd. You could change it by editing your /etc/motd file or you could just turn off showing the motd in the sshd_config:

root@server:~# cat /etc/ssh/sshd_config | grep PrintMotd
#PrintMotd yes
You could just uncomment that and change yes to no so you end up with:

root@server:~# cat /etc/ssh/sshd_config | grep PrintMotd
PrintMotd no
Hope that helps out! Shocked that such a message would even show up in any motd or fortune...that is why my guess would be an motd.
Old 02-05-2008, 05:59 AM   #4
Mr. Bond
LQ Newbie
Registered: Aug 2007
Posts: 14

Rep: Reputation: 0
Yup it is Fortune!

1. Uninstall Fortune with pkgtool
2. Remove from /etc/profile.d/

I just did that and everything works fine
Old 02-05-2008, 06:35 AM   #5
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,235

Rep: Reputation: 302Reputation: 302Reputation: 302Reputation: 302
Thats ok if you have root access. If not you will have to ask admin to uninstall it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10 03-11-2015 07:20 PM
SSH Pre-Login Message DeadlySin3 Linux - Newbie 1 05-04-2006 04:36 AM
Telnet and ssh login message digitalgravy Linux - Newbie 7 01-07-2004 10:35 PM
can't ssh, get the following message: BrianK Linux - General 6 08-12-2002 06:50 PM
SSH Login Message? John_Saunders Linux - Software 1 07-17-2002 04:26 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:03 AM.

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