LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-31-2006, 08:40 AM   #1
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
customize ssh login screen


After modifying my login screens per the great instructions at Woodsman's site

http://humanreadable.nfshost.com/sde...el_3_login.htm

I would like to modify the ssh login screen but can't quite figure out where it is. It is displaying the wrong kernel version for some reason. Are the /etc/issue.net and /etc/issue supposed to display on ssh login? If not, what do I have to update to get the ssh login screen to display the correct kernel version and how do I otherwise customize that login screen?

In /etc/sshd_config there is a commented out setting for "#Banner /some/path" -- is that it?

Thanks!
 
Old 01-31-2006, 10:59 AM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Give it a try
 
Old 01-31-2006, 01:11 PM   #3
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Original Poster
Rep: Reputation: 190Reputation: 190
Ok, I did and I was able to add some banner text after the "Using username..." and before the public key authentication language. Cool.

But now I want to fix the linux kernel version that listed after the "Last login:..." part. It lists kernel 2.6.13 but I am using a custom kernel 2.6.14.6. Where does the rest of the ssh login text come from? Thanks!
 
Old 01-31-2006, 01:40 PM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
I believe it has something to do with the 'uname' command, and this very thing was asked before; I think I even posted about it. Try doing a search.
 
Old 01-31-2006, 01:55 PM   #5
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Original Poster
Rep: Reputation: 190Reputation: 190
Thanks, I found that thread here:

http://www.linuxquestions.org/questi...&highlight=ssh

I had forgotten about /etc/motd but after reading that thread, I took at look at rc.S and the same line about updating /etc/motd with the correct uname -r is commented out. I'll uncomment and allow /etc/motd to be updated automatically.

Strange that I never noticed this before. I compile my own kernels all the time and use ssh every day and never noticed that the kernel version was wrong.

Interesting. Learn something every day. Thanks, mdarby.
 
  


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
GDM/KDM Login Screen too big for screen on ATI 3D Rage Pro daemon_14 Linux - Software 0 01-14-2006 01:34 PM
customize login script farhank Linux - Networking 2 10-27-2005 07:35 PM
Change Fedora Login Screen to KDE login screen ada601 Linux - Software 2 08-15-2004 05:07 PM
login screen font size over 100 - can't login xzy2435 Linux - Newbie 1 11-20-2003 11:40 AM
customize login screen jscerb Linux - Software 3 10-31-2003 05:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:19 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