From owner-freebsd-questions@FreeBSD.ORG Sat Sep 27 00:04:54 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 5A268D33 for ; Sat, 27 Sep 2014 00:04:54 +0000 (UTC) Received: from mail-qc0-x229.google.com (mail-qc0-x229.google.com [IPv6:2607:f8b0:400d:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 15E11C32 for ; Sat, 27 Sep 2014 00:04:54 +0000 (UTC) Received: by mail-qc0-f169.google.com with SMTP id r5so6487338qcx.28 for ; Fri, 26 Sep 2014 17:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gBWkB5jeRlESe3fDHzFhggRLTxfZXciGF+nredmWJmU=; b=pzNZ3vz+zeF07jeQUB9/EA7Dio31ioEt7ClMkvT18l2BU+4JRo9YnJdJKB0UksrKIR eL3h/Jge38BaxMH+qMP0EfUCfnOn+u1YC0FItpNh0Tb9Qn60z/jWyD/QMruJcIWkCPi/ Nmdj8ZRouLboBmedFi8hpU8ttiafOLdyjd14zeE95KlVQvXr/Zea9GZsv4T32jkkpLhb TZRcep34FKP+UTJp0H285ah9LsrQFyEcB1UL3XYGNt4yTTDgMyIk9TFa0Sphprn6FD8y 98GqlvRxWe0oHnqLAWGJV7SDTd4cAbN9u3EvCYKvmwga42CNsWLhNNQQ2+j/6Q8etfSj 9L/g== MIME-Version: 1.0 X-Received: by 10.140.31.194 with SMTP id f60mr19246891qgf.34.1411776293092; Fri, 26 Sep 2014 17:04:53 -0700 (PDT) Received: by 10.96.27.103 with HTTP; Fri, 26 Sep 2014 17:04:53 -0700 (PDT) Received: by 10.96.27.103 with HTTP; Fri, 26 Sep 2014 17:04:53 -0700 (PDT) In-Reply-To: <50075.166.147.100.43.1411770059.squirrel@cosmo.uchicago.edu> References: <20140926210145.GA10084@neutralgood.org> <50075.166.147.100.43.1411770059.squirrel@cosmo.uchicago.edu> Date: Fri, 26 Sep 2014 20:04:53 -0400 Message-ID: Subject: Re: pkg_delete bash, logged out by accident, can't ssh back in (not good) From: "firmdog@gmail.com" To: galtsev@kicp.uchicago.edu Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-questions@freebsd.org, kpneal@pobox.com 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 00:04:54 -0000 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" 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, 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 > ++++++++++++++++++++++++++++++++++++++++ >