pfSense SSH Going straight to shell not getting pfSense console
-
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?
-
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.
-
-
Yes, and that's the default for any user except root/admin.
Steve
-
Awesome, set it up so the rc.initial shell is now default for all existing and new users.
-
@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?
-
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
-
@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
-
I have no idea if that's a valid shell. I was just showing you how to change it.
-
Thanks. I can just run "/etc/rc.initial" and it fires up the shell. Strange. I'll test on another pfSense box.