X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=Cc7T7RpOrQnqtV1JIZkgOtyXsi7+9jRGq6dCK0Hkr/SVvvgPGbZpg
	mmJ3w6pH+1x0CoF073p+IXXqY50hjBd8WtXPQOHGnhFJnnLIf6gYUkXQeAM9q9ro
	yF00KzteIJi0PZlAysCmYrQA2gYU1Y/czr6+BQo2YSJHF2Nhf4d+lc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=ZkSYXL4qzw/gf+GRz4lvvyJ8DLo=; b=Oun4i7IrGTEchwTqy0GIo5WGJZxC
	FziNugP3VnDFLdSWXXUR8ixrOjwDsbnImBS4MtLZrHSiwdAr1KP0ZDguZaWayjK+
	4Qy2ZikNdMVSMBJO0s+w93uL2t23GfiSPmzYcw1Dnjm95XcBVHraQbCsH5+1WwWE
	T/KcoVZ09NADxto=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*Ad:D*gov, authorized_keys, ssh-rsa, sshrsa
X-HELO: blaine.gmane.org
To: cygwin@cygwin.com
From: Andrew Schulman <schulman.andrew@epa.gov>
Subject: Re: how to make sshd start a shell other than bash when I log in?
Date: Mon, 10 Apr 2017 07:51:36 -0400
Lines: 16
Message-ID: <h8smecpo0sbk0kht5cdefbjs2116kist7h@4ax.com>
References: <m2qdec1cc0bk75daeb1rjvvufpoh38irke@4ax.com> <58E6F4BA.3020903@tlinx.org> <af0975a6-0fc6-1d8d-b504-0eb230a8f6a1@SystematicSw.ab.ca> <n3siec9kj428039jba9u9r5ih64r1kgh60@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Archive: encrypt
X-IsSubscribed: yes

> It turns out that setting SHELL in ~/.ssh/environment doesn't
> work, nor does setting it in the key command. But setting
> 
> command="/usr/bin/fish --login" ssh-rsa ...
> 
> in authorized_keys does work.

Problem with that of course is that it only allows you to run login shells, even
if you're trying to run non-interactive remote commands. I guess you could use a
different ssh key for those, but that's a bit of a pain.

The compromise I finally settled on was just to put

exec /usr/bin/fish --login

in ~/.bash_profile.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

