public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* how to make sshd start a shell other than bash when I log in?
@ 2017-04-07  1:22 Andrew Schulman
  2017-04-07  2:09 ` L A Walsh
  2017-04-14  9:38 ` Thorsten Kampe
  0 siblings, 2 replies; 12+ messages in thread
From: Andrew Schulman @ 2017-04-07  1:22 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-04-18  1:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-07  1:22 how to make sshd start a shell other than bash when I log in? 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
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

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).