Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

$ ssh tim@xxxx.xxx.xxx.xxx

Password:

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
1  
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
add comment

3 Answers

up vote 6 down vote accepted

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

http://ubuntuforums.org/showthread.php?t=1545205

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.