pkg_delete bash, logged out by accident, can't ssh back in (not good)

dweimer dweimer at
Fri Sep 26 21:42:40 UTC 2014

On 09/26/2014 4:14 pm, firmdog at wrote:
> Oh boy. I have only 2 accounts on this box. Root and one other
> account. Both use bash as default.
> I am completely locked out of this box on the command line?
> On Fri, Sep 26, 2014 at 5:01 PM,  <kpneal at> wrote:
>> On Fri, Sep 26, 2014 at 04:51:32PM -0400, firmdog at wrote:
>>> I did a pkg_delete of bash and was going to make install a new one
>>> from the port, due to shellshock. I logged out by accident, and when
>>> try to login via ssh, it won't take my password. I assume I can't
>>> login because the default shell is bash, which has been removed 
>>> right?
>> Sounds like it.
>>> Any ideas on how I can get into my remote freebsd box via ssh?
>> Use a different remote account with a different shell.
>>> Workarounds?
>> None.
>> --

You should be able to hard reboot, select single user mode option when 
booting then change the shell back to default for root.  Finish booting 
then re-install bash.

    Dean E. Weimer

More information about the freebsd-questions mailing list