-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't connect with RemoteCommand in ssh config #481
Comments
RemoteCommand is not supported before SSH 7.6 which is not that old, so I should only set this if the user has it in their config. |
Can I get some clarification here? I have ssh v7.6, and when I put a RemoteCommand in the |
Can you share your ssh config? Seems we are not detecting your RemoteCommand |
It could be that the problem is that I'm ssh'ing a second time, but the config does work when I ssh via command line. |
I can't reproduce this, can you share the log from the Remote - SSH output channel? |
Sure!
|
I can repro it, just on windows, thanks |
This has come up several times but there is not one issue that only hits this.
Add a line like this to your ssh config:
RemoteCommand bash -l
. Some people like to do this to set a default shell. But they will get an error message likeCannot execute command-line and remote command.
because we can't pass the install script when a RemoteCommand is defined.Fixing this to override RemoteCommand in all of our generated ssh commands.
The text was updated successfully, but these errors were encountered: