Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Does anyone know why I am kicked out immediately after everytime I log in? Here is the output:

$ ssh tim@xxxx.xxx.xxx.xxx


Linux xxxx 2.6.32-24-server #43-Ubuntu SMP Thu Sep 16 16:05:42 UTC 2010 x86_64 GNU/Linux Ubuntu 10.04.1 LTS

Welcome to the Ubuntu Server!

You have mail.

Last login: Fri Oct 1 10:24:01 2010 from xxxx.xxx.xxx

You are not authorized to log into this server

Connection to xxxx.xxx.xxx.xxx closed.

If I am indeed not authorized to log into this server, why I receive the typical information upon logging in, such as the information about the server, the welcome message and the last time I logged in?

How can I solve this problem?

Thanks and regards!

share|improve this question
why don't you ask your administrator? she's the one who configured it that way (the message implies it's on purpose) – hop Oct 1 '10 at 14:35
up vote 6 down vote accepted

A google search shows someone might be using this script :-)


The default shell is replaced by a script looking for the username in an “allowed users“ file and either starts a standard bash or displays this message and exits.

share|improve this answer

Probably because your shell has been switched to something that prints that message and exits afterwards. In that case, SSH will behave just as usual and display any welcome message, biff, etc.

share|improve this answer

Has the software on the server been updated recently?

Some idiot package maintainers ( and Ubuntu is one of the big violators ), decide that they know better then you what settings you should have and overwrite them.

share|improve this answer

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.