From owner-freebsd-questions@FreeBSD.ORG Fri Sep 26 21:42:40 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79628506; Fri, 26 Sep 2014 21:42:40 +0000 (UTC) Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com [24.240.198.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "webmail2.dweimer.local", Issuer "webmail2.dweimer.local" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 41335CA1; Fri, 26 Sep 2014 21:42:39 +0000 (UTC) Received: from www.dweimer.net (webmail [192.168.5.2]) by webmail.dweimer.net (8.14.7/8.14.7) with ESMTP id s8QLgVVo048395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 26 Sep 2014 16:42:32 -0500 (CDT) (envelope-from dweimer@dweimer.net) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 26 Sep 2014 16:42:31 -0500 From: dweimer To: firmdog@gmail.com Subject: Re: =?UTF-8?Q?pkg=5Fdelete=20bash=2C=20logged=20out=20by=20accide?= =?UTF-8?Q?nt=2C=20can=27t=20ssh=20back=20in=20=28not=20good=29?= Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net In-Reply-To: References: <20140926210145.GA10084@neutralgood.org> Message-ID: X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.0.2 Cc: freebsd-questions@freebsd.org, kpneal@pobox.com, owner-freebsd-questions@freebsd.org 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: Fri, 26 Sep 2014 21:42:40 -0000 On 09/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? > > > > > > 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. >> -- 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. -- Thanks, Dean E. Weimer http://www.dweimer.net/