Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

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
what does cat /etc/motd say? –  wag Dec 18 '10 at 10:40
add comment

1 Answer

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! –  emuso Dec 20 '10 at 8:00
add comment

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.