From owner-freebsd-questions@FreeBSD.ORG Sat Sep 27 03:08:21 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 F10E363D for ; Sat, 27 Sep 2014 03:08:21 +0000 (UTC) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) (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 C2BA7DFD for ; Sat, 27 Sep 2014 03:08:21 +0000 (UTC) Received: by mail-pd0-f172.google.com with SMTP id g10so2084176pdj.31 for ; Fri, 26 Sep 2014 20:08:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=SaLDOuHsjUg0bS2929dmg3JpY3beUBtPP+aeZpNCMkU=; b=f5oZvuOihzGZCT0H0WZJkS0Ubu1JFBOwTBkD8B2w0WF9FnELAo2IcK5LJXtGghZEGZ RjvXRdw/BnSo6m1UMUdTd6pcpjfMNg7n9XySlS2FUJ9ETBpZY7DL8OrC4EcmBV0/8rUO mvJSW1DegvicjFKuYoZV0VdfGb4pspFeWceqtxNCRXzHKemdOeFnIA7waxCVhSaXiF8g 69xZAiTazfpAYPF75crzg2XKDoqVo+SVl/lbSZXph9jkRjefeVCq1tgEdO488PJJm/aW AhGWCOn/Fhc+ey/3EFeGzm5CuteQenF8PZrP34oRo8cEBt8yc12GInbzlDu/9dk9jxkH lpMg== X-Gm-Message-State: ALoCoQk4jHh206rcWG8HyMAsH4o9v6orBWgBE6nbkPfitV7aWfIJ+CPuFT2kMSoAAukvYlpqR1ro X-Received: by 10.68.69.106 with SMTP id d10mr25114003pbu.111.1411787295637; Fri, 26 Sep 2014 20:08:15 -0700 (PDT) Received: from wide.rdtan.net ([60.51.62.36]) by mx.google.com with ESMTPSA id x13sm6193696pdk.22.2014.09.26.20.08.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Sep 2014 20:08:14 -0700 (PDT) Received: from localhost (1000@localhost [local]); by localhost (OpenSMTPD) with ESMTPA id 0b2156cb; Sat, 27 Sep 2014 11:08:11 +0800 (MYT) Date: Sat, 27 Sep 2014 11:08:11 +0800 From: Edward To: "firmdog@gmail.com" Subject: Re: pkg_delete bash, logged out by accident, can't ssh back in (not good) Message-ID: <20140927030810.GC23533@wide.rdtan.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Cc: 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: Sat, 27 Sep 2014 03:08:22 -0000 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? > > Any ideas on how I can get into my remote freebsd box via ssh? > > Workarounds? Hi, After a few times stepping on this problem when upgrading ports, picked up a habit. Leave /bin/{k}sh as default shell and always "tmux new" after remote login. HTH, Edward.