Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    pfSense SSH Going straight to shell not getting pfSense console

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 5 Posters 2.4k 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.
    • T
      trees spanning the land
      last edited by

      Title says it, when I SSH into once of the pfSense boxes at one of our sites it's dropping straight to shell instead of going to the console and no I am not running a DEVEL version. Anyone have any ideas what could be causing this?

      1 Reply Last reply Reply Quote 0
      • G
        gjaltemba
        last edited by

        This happens when the user default shell is /bin/tcsh. Change the default to /etc/rc.initial to get console or run /etc/rc.initial manually.

        1 Reply Last reply Reply Quote 1
        • T
          trees spanning the land
          last edited by trees spanning the land

          @gjaltemba said in pfSense SSH Going straight to shell not getting pfSense console:

          /etc/rc.initial

          Of course. The solution was flex tape.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Yes, and that's the default for any user except root/admin.

            Steve

            1 Reply Last reply Reply Quote 0
            • T
              trees spanning the land
              last edited by

              Awesome, set it up so the rc.initial shell is now default for all existing and new users.

              J 1 Reply Last reply Reply Quote 0
              • J
                JInx-IT @trees spanning the land
                last edited by

                @trees-spanning-the-land Could you send a link as to how to make this change? I can't find it in the GUI, so i'm assuming it's a file to edit?

                1 Reply Last reply Reply Quote 0
                • KOMK
                  KOM
                  last edited by KOM

                  Could you send a link as to how to make this change?

                  chsh -s /path/to/new/shell
                  

                  so...

                  chsh -s /etc/rc.initial
                  

                  or just run

                  chsh
                  

                  and then change the Shell= line

                  1 Reply Last reply Reply Quote 0
                  • J
                    JInx-IT
                    last edited by

                    @KOM said in pfSense SSH Going straight to shell not getting pfSense console:

                    /etc/rc.initial

                    Thanks, but i get this error and the change doesn't stick.

                    chsh: /etc/rc.initial: non-standard shell

                    1 Reply Last reply Reply Quote 0
                    • KOMK
                      KOM
                      last edited by

                      I have no idea if that's a valid shell. I was just showing you how to change it.

                      1 Reply Last reply Reply Quote 0
                      • J
                        JInx-IT
                        last edited by

                        Thanks. I can just run "/etc/rc.initial" and it fires up the shell. Strange. I'll test on another pfSense box.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.