LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   customize ssh login screen (https://www.linuxquestions.org/questions/slackware-14/customize-ssh-login-screen-409990/)

chess 01-31-2006 08:40 AM

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!

mdarby 01-31-2006 10:59 AM

Give it a try ;)

chess 01-31-2006 01:11 PM

:) 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!

mdarby 01-31-2006 01:40 PM

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.

chess 01-31-2006 01:55 PM

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.


All times are GMT -5. The time now is 11:27 PM.