Change default SSH shell?
-
Hi,
when I ssh to my box I get a tcsh as user, and sh as root. Can I redefine this somehow? I tried to change this in /etc/passwd, but didn't do anything. Would such change impact on functionality or just a matter of taste?
Thanks
-
While you can't change the default without affecting things like the menu, you can have
ssh
start whatever you want. There are not a lot of alternatives available, though. But there isbash
which you can install viapkg install bash
.Then SSH in with:
$ ssh root@x.x.x.x -t bash
Be aware if you try to use
bash -l
it will end up going right into the menu if you use root or admin. As a regular non-root user that should be OK.Alternately, consider either having it run your preferred shell at the end of the
tcsh
.tcshrc
or even patching the menu file (/etc/rc.initial
) to run it directly for option8
. -
@jimp said in Change default SSH shell?:
While you can't change the default without affecting things like the menu, you can have
ssh
start whatever you want. There are not a lot of alternatives available, though. But there isbash
which you can install viapkg install bash
.Then SSH in with:
$ ssh root@x.x.x.x -t bash
Be aware if you try to use
bash -l
it will end up going right into the menu if you use root or admin. As a regular non-root user that should be OK.Alternately, consider either having it run your preferred shell at the end of the
tcsh
.tcshrc
or even patching the menu file (/etc/rc.initial
) to run it directly for option8
.Thanks! Well, there were a few options, and I think loading it from .tcshrc sounds like the best option, least intrusive :) I'll give it a go!