LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

Rep: Reputation: 0
Question SSH login message


Hello,
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
Quote:
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
Thanks.

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

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

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


although

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
xiao_haozi
LQ Newbie
 
Registered: Feb 2008
Location: Philadelphia, PA
Distribution: Slackware, Kubuntu, BackTrack, Slax, LFS
Posts: 10

Rep: Reputation: 0
fortune

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:

Code:
Last login: Tue Jan 15 22:49:52 2008 from 
Linux 2.6.22.1-UBER.
root@server:~# cat /etc/motd
Linux 2.6.22.1-UBER.
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:

Code:
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:

Code:
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:

Code:
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 bsd-games-login-fortune.sh from /etc/profile.d/

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

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


Reply


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 9 11-03-2011 11:42 AM
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


All times are GMT -5. The time now is 07:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration