On Thu, 17 Aug 2023, Dr Bean via Cygwin wrote: > On Thu, 17 Aug 2023, Cedric Blancher via Cygwin wrote: > > > Good evening! > > > > How can I get a Cygwin session for one Windows login, and get the same > > Cygwin session when I log into the same Windows machine via ssh? > > > Following > https://learn.microsoft.com/ja-jp/windows-server/administration/openssh/openssh_server_configuration > > and substituting cygwin bash's > path for powershell's, I get > a cygwin bash shell. > > But $HOME is Window's and .bashrc > is not executed. > > Let me see if I can set HOME.
I appear to have answered a question which wasn't asked, how to get Microsoft's implementation of sshd working. i have run up against the problem of the OP, trying and failing to reattach a detached screen session over ssh. Solving my own problem of wrong HOME and no execution of bashrc, a Windows batch file that sets HOME and invokes bash with interactive, login and rcfile options did the trick. But is there an official way to run cygwin with MS's sshd? > > Cedric Blancher <cedric.blanc...@gmail.com> > > [https://plus.google.com/u/0/+CedricBlancher/] > > Institute Pasteur > > > > -- > > Problem reports: https://cygwin.com/problems.html > > FAQ: https://cygwin.com/faq/ > > Documentation: https://cygwin.com/docs.html > > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple > -- > Greg Matheson Theory and practice. In theory, they are the same > thing. > http://drbean.sdf.org In practice, they are different. > drb...@freeshell.org --https://quoteinvestigator.com/2018/04/14/theory/ -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple