Tracking Down Ubuntu BASH Session Closing
-
@IRJ what's odd here is that it will time out as you are typing. So it isn't a timeout in the normal sense. You can run a command, and run another say within one second. Literally that fast. And it might kick you in between.
And when it does, it puts "logout" into the session.
-
Just tested one and I logged in and within two seconds it had logged me out again.
-
@scottalanmiller said in Tracking Down Ubuntu SSH Session Closing:
Just tested one and I logged in and within two seconds it had logged me out again.
Could it be some strange cron job or something? Or did this start after a system upgrade?
-
Can you scp files?
-
I would try to download some config files so I could look at them
-
@IRJ said in Tracking Down Ubuntu SSH Session Closing:
Can you scp files?
I'm sure that I can. I'll get some.
-
@dafyre said in Tracking Down Ubuntu SSH Session Closing:
@scottalanmiller said in Tracking Down Ubuntu SSH Session Closing:
Just tested one and I logged in and within two seconds it had logged me out again.
Could it be some strange cron job or something? Or did this start after a system upgrade?
Could be, definitely. But I looked and haven't found one.
-
Created a new user from scratch. Same issue just seconds after first login.
-
I'm pretty sure that it is not SSH related, because sudo sessions get closed, too.
-
I've switched my shell to zsh and so far, no logouts.
-
If I use zsh, I'm good. If I enter BASH from zsh, I get kicked out after several seconds. Definitely is something to do with BASH.
-
@IRJ TMOUT variable never appears in /etc
-
I manually set the TMOUT variable to 0 to disable it, and it still happens. So that is not what is being used.
-
Tried disabling AppArmor, but that did nothing.
-
-
Try this command first to bypass bash settings
ssh -t <host> dash
-
@IRJ said in Tracking Down Ubuntu BASH Session Closing:
Try this command first to bypass bash settings
ssh -t <host> dash
Using ZSH is what I am doing, works fine, too.
-
@IRJ said in Tracking Down Ubuntu BASH Session Closing:
https://askubuntu.com/questions/404424/how-do-i-restore-bashrc-to-its-default#404428
Pretty confident that it is none of those. They are all vanilla.
-
@IRJ brand new users have the issue, too.
-
@scottalanmiller said in Tracking Down Ubuntu BASH Session Closing:
@IRJ brand new users have the issue, too.
Doesn't bash have a global default config that applies to all users?