public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrew Schulman <schulman.andrew@epa.gov>
To: cygwin@cygwin.com
Subject: Re: how to make sshd start a shell other than bash when I log in?
Date: Mon, 10 Apr 2017 11:51:00 -0000	[thread overview]
Message-ID: <h8smecpo0sbk0kht5cdefbjs2116kist7h@4ax.com> (raw)
In-Reply-To: <n3siec9kj428039jba9u9r5ih64r1kgh60@4ax.com>

> 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

  parent reply	other threads:[~2017-04-10 11:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-07  1:22 Andrew Schulman
2017-04-07  2:09 ` L A Walsh
2017-04-07  5:59   ` Brian Inglis
2017-04-08 23:22     ` Andrew Schulman
2017-04-09  3:54       ` Brian Inglis
2017-04-10 11:51       ` Andrew Schulman [this message]
2017-04-14  9:38 ` Thorsten Kampe
2017-04-15  3:37   ` Brian Inglis
2017-04-15 15:51   ` Andrew Schulman
2017-04-15 16:03     ` Andrew Schulman
2017-04-18  1:11     ` Gluszczak, Glenn
2017-04-18 18:21       ` Andrew Schulman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=h8smecpo0sbk0kht5cdefbjs2116kist7h@4ax.com \
    --to=schulman.andrew@epa.gov \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).