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.

I lost my connection while I was logged via SSH into my university server. Classic.

Now I can't log in since the session appears to be still running and I get the error "Too many logins for 'myuser'". (Only 1 login for each user is allowed)

Is there a way to recover the session not having another access to the server (I can't reach any sysadmin until monday) - or the only way is just to wait for the session to time out? Typically how long should I wait? More than an hour has already passed.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You could try running something like ssh -n remuser remhost kill -HUP -1. This would not create a login, so it might bypass the 1 login/user limitation.

If this does not work, then you might have to find someone who does have access, then run su remuser with your password from that person's account. Then you'd be able to run kill -HUP -1.

share|improve this answer
2  
I'd also suggest trying to get someone else to 'talk username' to try and trigger network traffic for the session which should cause it to timeout, if su doesn't work. –  polynomial Sep 10 '11 at 21:38
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.