-
Notifications
You must be signed in to change notification settings - Fork 803
Open
Labels
Milestone
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
- On machine running OpenSSH server, install Git Bash and set
DefaultShellfor OpenSSH Server to the path of Git Bash (on my machine, I usedD:\Programs\Git\usr\bin\bash.exe). - On another machine, connect to the OpenSSH server with
ssh -T <host_address>.
I am attempting to use VS Code Remote-SSH to connect from my laptop to my desktop (running OpenSSH). This fails to connect. The underlying command being used is ssh -T <host_address>. I have configured OpenSSH to use DefaultShell to be Git Bash. Note: clearing this makes it work though now when I need to ssh into my desktop I need to manually run bash.
Expected behavior
> ssh -T <address>
echo hi<C-d>
hiActual behavior
> ssh -T <address>
/d/programs/git/usr/bin/bash: line 1: : command not found
/d/programs/git/usr/bin/bash: line 2: : command not found
/d/programs/git/usr/bin/bash: line 3: : command not found
/d/programs/git/usr/bin/bash: line 4: : command not found
/d/programs/git/usr/bin/bash: line 5: : command not found
/d/programs/git/usr/bin/bash: line 6: : command not found
/d/programs/git/usr/bin/bash: line 7: : command not found
/d/programs/git/usr/bin/bash: line 8: : command not found
/d/programs/git/usr/bin/bash: line 9: : command not found
/d/programs/git/usr/bin/bash: line 10: : command not found
/d/programs/git/usr/bin/bash: line 11: : command not found
/d/programs/git/usr/bin/bash: line 12: : command not found
/d/programs/git/usr/bin/bash: line 13: : command not foundError details
Environment data
I am not running PowershellVersion
9.5.4.1
Visuals
No response