X-Recipient: archive-cygwin AT delorie DOT 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:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=LfQ VNbIhCAPoqi2SvutBtzHX+un3fhzRMMfw8R9DMo5xDkFW8bZerD7B/f3zV210uVq xbARhWh4lm/I5fhfo1ROAFU7hVnSDJ+Y+1B2HT4+7fPI94HNsSbIfnKnLHz3QJBa +lzgUrBYj+weLPF9bVw3B0CDfOVqmgkE+8GsoOA8= 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:mime-version :content-type:content-transfer-encoding; s=default; bh=awC9/RasP GJ2dJCJZjYGyrH4p3s=; b=U1EJa467sauhzwFIDxmwl+kQ8h4ElAPhaSqfk0fK4 gd/agwb3eAApIummbpEhgfHQs8u3vU+7y2zUioDaPlGJlobL/I1QXfNUD51tX9lY O2jTocdhUD9B8F89nu91LlzzDF5fDgvuu/nmJvyfC50cMqlNgBH38jIIaCkLz5VE iI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=BAYES_40,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=fish, H*Ad:D*gov, mintty, H*r:Unknown X-HELO: blaine.gmane.org To: cygwin AT cygwin DOT com From: Andrew Schulman Subject: how to make sshd start a shell other than bash when I log in? Date: Thu, 06 Apr 2017 21:22:38 -0400 Lines: 23 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive: encrypt X-IsSubscribed: yes My regular shell is fish. To make local terminals run fish instead of bash when I start them, I set SHELL=/usr/bin/fish in my desktop environment. This works fine: I start MinTTY, and fish starts. But when I log into that same host by sshd, bash starts, not fish (since sshd doesn't have access to my desktop environment variables). How can I configure either my ssh client or the ssh server to start fish instead of bash? On a Linux host, sshd will start the user's default shell, as recorded in /etc/passwd and set by chsh. But in Cygwin we don't have those. On the client I know I could run e.g. ssh host /usr/bin/fish --login but I don't want to have to do that every time, and there doesn't seem to be a way to set it in ssh_config. Thanks, Andrew -- 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