From owner-freebsd-questions@FreeBSD.ORG Sat Sep 27 05:03:56 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1DDB8C7C for ; Sat, 27 Sep 2014 05:03:56 +0000 (UTC) Received: from bashful.is.co.za (bashful.is.co.za [196.35.13.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A5415B7F for ; Sat, 27 Sep 2014 05:03:54 +0000 (UTC) Received: from [196.14.169.131] (port=23880 helo=zabrysvisexhub4.af.didata.local) by bashful.is.co.za with esmtps (Cipher TLSv1:RC4-SHA:128) (Internet Solutions MTA) (envelope-from ) id 1XXkAg-0001NH-2d for ; Sat, 27 Sep 2014 07:03:51 +0200 Received: from ZABRYSVISEXMBX6.af.didata.local ([fe80::7cac:3c86:5c53:2e65]) by zabrysvisexhub4.af.didata.local ([fe80::481e:fd56:2c33:836b%11]) with mapi id 14.03.0195.001; Sat, 27 Sep 2014 07:03:14 +0200 From: Vikash Badal To: "freebsd-questions@freebsd.org" Subject: Re: pkg_delete bash, logged out by accident, can't ssh back in (not good) Thread-Topic: pkg_delete bash, logged out by accident, can't ssh back in (not good) Thread-Index: AQHP2cuxUdRKWtcNQ0C40/LtE36n9ZwTxQqAgAADhYCAABKegIAAcGEA Date: Sat, 27 Sep 2014 05:03:13 +0000 Message-ID: <54264510.1080901@is.co.za> References: <20140926210145.GA10084@neutralgood.org> <50075.166.147.100.43.1411770059.squirrel@cosmo.uchicago.edu> In-Reply-To: <50075.166.147.100.43.1411770059.squirrel@cosmo.uchicago.edu> Accept-Language: en-ZA, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 x-originating-ip: [196.215.200.117] Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Scan-Signature: 488d7d09bfcc44dd96c8ef624269e04f X-Trace: bashful.is.co.za 1XXkAg-0001NH-2d 4a4ecefa2d891e7ca5ed06f5a7091911 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 05:03:56 -0000 On 27/09/2014 00:20, Valeri Galtsev wrote: >=20 > 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? >> >=20 > One thing I would try is >=20 > ssh user@box.org exec /bin/sh >=20 ssh -t user@box.org /bin/sh works for me > 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...) >=20 > Valeri >=20 >> >> >> >> >> On Fri, Sep 26, 2014 at 5:01 PM, 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" >> >=20 >=20 > ++++++++++++++++++++++++++++++++++++++++ > Valeri Galtsev > Sr System Administrator > Department of Astronomy and Astrophysics > Kavli Institute for Cosmological Physics > University of Chicago > Phone: 773-702-4247 > ++++++++++++++++++++++++++++++++++++++++ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >=20