SSH deployment with tunnel in Windows 10
I´m changing from pycharm in linux to pycharm in windows 10 and starting the configuration of everything.
I´m trying to configure an ssh connection with a tunnel using the openssh command with a config like this:
Host computer
User myUser
Port 22
ProxyCommand C:\Windows\System32\OpenSSH\ssh.exe myUserOut@myserver.com exec nc -q0 %h %p
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
It works both from the ubuntu in the linux subsisten and from the windows console to do "ssh computer" however, from the Deployment configuration tag, selecting "OpenSSH config and authentication agent" it fails.
Connection to 'computer' failed.
Could not connect to SFTP server at "sftp://computer/".
Should I modify anything?
Thanks in advance
Please sign in to leave a comment.
Hi,
Have you tried similar command https://youtrack.jetbrains.com/issue/IDEA-214679#focus=streamItem-27-2942274.0-0?
As a workaround, if you have ssh client you could try to run
ssh -L 127.0.0.1:<any free local port>:Server_Execution:<Server_gateway ssh port> Server_gateway(for example,ssh -L 127.0.0.1:2200:Server_Execution:22 Server_gateway) on your local machine and then configure Remote Interpreter in PyCharm to127.0.0.1:2200. The main requirement is that you should be able to connect to Server_Execution and Server_gateway via ssh.Yes, with the configuration on that post it does not work on Windows (It worked well in linux), so, it can be a bug on the linux implementation or something like that.