ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Tracking Down Ubuntu BASH Session Closing

    Scheduled Pinned Locked Moved IT Discussion
    sshlinuxopensshubuntuubuntu 16.04ubuntu 18.04bashshellzsh
    45 Posts 8 Posters 4.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dafyreD
      dafyre @scottalanmiller
      last edited by

      @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?

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • IRJI
        IRJ
        last edited by

        Can you scp files?

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • IRJI
          IRJ
          last edited by

          I would try to download some config files so I could look at them

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @IRJ
            last edited by

            @IRJ said in Tracking Down Ubuntu SSH Session Closing:

            Can you scp files?

            I'm sure that I can. I'll get some.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @dafyre
              last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller
                last edited by

                Created a new user from scratch. Same issue just seconds after first login.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  I'm pretty sure that it is not SSH related, because sudo sessions get closed, too.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    I've switched my shell to zsh and so far, no logouts.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      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.

                      matteo nunziatiM 1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @IRJ
                        last edited by

                        @IRJ TMOUT variable never appears in /etc

                        1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller
                          last edited by

                          I manually set the TMOUT variable to 0 to disable it, and it still happens. So that is not what is being used.

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller
                            last edited by

                            Tried disabling AppArmor, but that did nothing.

                            1 Reply Last reply Reply Quote 0
                            • IRJI
                              IRJ
                              last edited by

                              https://askubuntu.com/questions/404424/how-do-i-restore-bashrc-to-its-default#404428

                              scottalanmillerS 2 Replies Last reply Reply Quote 1
                              • IRJI
                                IRJ
                                last edited by

                                Try this command first to bypass bash settings

                                ssh -t <host> dash

                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @IRJ
                                  last edited by

                                  @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.

                                  1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @IRJ
                                    last edited by

                                    @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.

                                    1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @IRJ
                                      last edited by

                                      @IRJ brand new users have the issue, too.

                                      JaredBuschJ 1 Reply Last reply Reply Quote 0
                                      • JaredBuschJ
                                        JaredBusch @scottalanmiller
                                        last edited by

                                        @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?

                                        black3dynamiteB scottalanmillerS 2 Replies Last reply Reply Quote 1
                                        • black3dynamiteB
                                          black3dynamite @JaredBusch
                                          last edited by black3dynamite

                                          @JaredBusch said in Tracking Down Ubuntu BASH Session Closing:

                                          @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?

                                          Ubuntu 18.04.2
                                          /etc/profile and /etc/bash.bashrc

                                          Fedora 30
                                          /etc/profile and /etc/bashrc

                                          scottalanmillerS 1 Reply Last reply Reply Quote 1
                                          • scottalanmillerS
                                            scottalanmiller @JaredBusch
                                            last edited by

                                            @JaredBusch said in Tracking Down Ubuntu BASH Session Closing:

                                            @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?

                                            It has one, yes. But it's vanilla. And even removing it, no change.

                                            dafyreD 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post