Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just received the login information for a new vServer running Debian 5.0 (amd64). Whenever I log in I get an empty line:

markus@neon ~ $ ssh flour

markus@flour ~

I don't know where this line comes from and I don't want it to be there. To debug this I put foo in /etc/issue.net and set the Banner option in /etc/ssh/sshd_config accordingly. Then I put echo bar in my .bash_profile as the first line. The result is this:

markus@neon ~ $ ssh flour
foo

bar
markus@flour ~ $

I don't know which files are used between the Banner and .bash_profile. Could someone give me a hint, please?

share|improve this question
1  
what does cat /etc/motd say? – wag Dec 18 '10 at 10:40
up vote 4 down vote accepted

If PrintMotd is set to yes (or is commented out - yes is the default), I would guess that there's a blank line in /etc/motd. Debian by default has quite a verbose MOTD, and it sounds like someone's edited the file and deleted all the lines by hand, leaving the last line empty.

share|improve this answer
    
Thanks! That was it! – user41024 Dec 20 '10 at 8:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.