running code on a remote Linux machine, from a windows one Follow
Hi Everyone,
I have this PyCharm/Python question that's been keeping me up nights for quite some time,
and I'd be happy if someone could help :-) :
I have PyCharm installed both on my laptop (windows), and on my main coding rig (Fedora Linux).
My project is stored on the Linux desktop, where I usually work/code/debug most of the time.
I've been searching for a way to write code on my laptop, but have it run directly on my Linux machine, from PyCharm.
I want the code I write in windows to be executed directly against my Linux hardware.
Ideally, I would just open PyCharm, tell it to connect to a 'Remote Project' or something, and from now on everything I do will be saved/run on my Linux machine.
After reading a bit, I thought maybe the 'Remote Interpreter' feature was what I needed. Unfortunately, even though I have SSH to my Linux system, I get an error about SFTP being invalid for some reason. Maybe that's not it?
Does anyone have an idea how to make this come true? that'd be much appreciated.
Thank you for your help.
I have this PyCharm/Python question that's been keeping me up nights for quite some time,
and I'd be happy if someone could help :-) :
I have PyCharm installed both on my laptop (windows), and on my main coding rig (Fedora Linux).
My project is stored on the Linux desktop, where I usually work/code/debug most of the time.
I've been searching for a way to write code on my laptop, but have it run directly on my Linux machine, from PyCharm.
I want the code I write in windows to be executed directly against my Linux hardware.
Ideally, I would just open PyCharm, tell it to connect to a 'Remote Project' or something, and from now on everything I do will be saved/run on my Linux machine.
After reading a bit, I thought maybe the 'Remote Interpreter' feature was what I needed. Unfortunately, even though I have SSH to my Linux system, I get an error about SFTP being invalid for some reason. Maybe that's not it?
Does anyone have an idea how to make this come true? that'd be much appreciated.
Thank you for your help.
Please sign in to leave a comment.
When I test the connection, the error message says:
"Test SFTP Connection - Connection to xxx.xxx.xxx.xxx failed. Connection failed".
In "Auth Type" I have "password" selected...should it be like that for SSH?
Thank you for your help.
perhaps i'm doing something wrong? should the host address have a prefix or something?
I'm really at odds here. I can easily connect to the host using putty ssh, but PyCharm just keeps giving me the same error.
Here's what I tried:
1. PyCharm on my laptop trying to connect to my Linux machine = SFTP error in PyCharm.
2. PyCharm on another Linux machine (same network as before) trying to connect to my Linux machine = success!
3. PyCharm on the Linux machine from clause 2 (now running windows), trying to connect to another Linux machine = SFTP error in PyCharm.
It seems like there's a problem with the latest PyCharm on windows only. I'm not sure if PyCharm has a built in SSH client or if it's trying to use the default one in the system, but no matter what I do (even with cygwin installed), it fails on windows.
I'm on windows 7, I have SSH working fine with Putty and such, but despite that PyCharm can't connect to my Linux machine.
Again, this works fine on Linux.
I've ran Wireshark on both sides.
Here are the results:
The windows machine is 10.12.232.51
The Linux machine is 10.12.232.59
Here's what Wireshark sees on the windows machine:
windows_pycharm.pcapng (4.3KB)
And the error message I get in windows PyCharm:
The Linux machine capture shows this (Wireshark capture):
linux_remote (13KB)
As you can tell from the captures, PyCharm actually doesn't send any traffic on the wire in windows.
I can tell not only by Wireshark, but also by the immediate error I get, like there's no processing involved.
Again, the same process works fine with a Linux to Linux connection.
Thanks again for your help. Much appreciated.
Any thoughts? Is there something wrong with my configuration or could this be a bug?
1. Installed virtual box
2. Installed Linux on 1'st VM, Win7+PyCharm on 2'nd
3. Checked ping+SSH works between both machines flawlessly
4. Opened Pycharm on Win7 VM, tried to configure remote interpreter to linux machine
5. Right away get the same SFTP error message - PyCharm isn't even trying to connect
Pretty much at odds here.
Thank you!