Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2014 20:04:53 -0400
From:      "firmdog@gmail.com" <firmdog@gmail.com>
To:        galtsev@kicp.uchicago.edu
Cc:        freebsd-questions@freebsd.org, kpneal@pobox.com
Subject:   Re: pkg_delete bash, logged out by accident, can't ssh back in (not good)
Message-ID:  <CAHcg-UFVFBdj9TsJQKveCA4dRxGBxQWb5aATXsS=FVCHg_DT_A@mail.gmail.com>
In-Reply-To: <50075.166.147.100.43.1411770059.squirrel@cosmo.uchicago.edu>
References:  <CAHcg-UGOAjobmTnWM9%2B5PiE23wXrDO8v31p5QCF07ar8aXEV8A@mail.gmail.com> <20140926210145.GA10084@neutralgood.org> <CAHcg-UFahAwG7%2BhgDiK-OLGqS_H0nKjeR4wozRHwauaUUFEsQA@mail.gmail.com> <50075.166.147.100.43.1411770059.squirrel@cosmo.uchicago.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Didn't work. Thanks for the idea!

But I just got home and happen to have a shell open from a laptop. So lucky
and fortunate that I had a shell open from home.

Wow that was close .....  very close and  very happy now.

Even if you are very experienced you can always screw up no matter how old
you are. :-)
On Sep 26, 2014 6:20 PM, "Valeri Galtsev" <galtsev@kicp.uchicago.edu> wrote:

>
> On Fri, September 26, 2014 4:14 pm, firmdog@gmail.com 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?
> >
>
> One thing I would try is
>
> ssh user@box.org exec /bin/sh
>
> replace with your username and machine name. I am on the road with little
> ability to test it, so my apology about my stupidity (as it likely will
> try to invoke default shell first to then execute what exec requests...)
>
> Valeri
>
> >
> >
> >
> >
> > On Fri, Sep 26, 2014 at 5:01 PM,  <kpneal@pobox.com> wrote:
> >> On Fri, Sep 26, 2014 at 04:51:32PM -0400, firmdog@gmail.com 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.
> >> --
> >> Kevin P. Neal                                http://www.pobox.com/~kpn/
> >>
> >>  "Good grief, I've just noticed I've typed in a rant. Sorry chaps!"
> >>                             Keir Finlow Bates, circa 1998
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe@freebsd.org"
> >
>
>
> ++++++++++++++++++++++++++++++++++++++++
> Valeri Galtsev
> Sr System Administrator
> Department of Astronomy and Astrophysics
> Kavli Institute for Cosmological Physics
> University of Chicago
> Phone: 773-702-4247
> ++++++++++++++++++++++++++++++++++++++++
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHcg-UFVFBdj9TsJQKveCA4dRxGBxQWb5aATXsS=FVCHg_DT_A>