Skip to content

Instantly share code, notes, and snippets.

@jorgegonzalez
Last active June 26, 2023 13:56
Show Gist options
  • Select an option

  • Save jorgegonzalez/45e9d149288ed96eda52c650857ac089 to your computer and use it in GitHub Desktop.

Select an option

Save jorgegonzalez/45e9d149288ed96eda52c650857ac089 to your computer and use it in GitHub Desktop.
Remote Development with PyCharm

(and other IDEs.)

This document assumes a Linux-based host machine.

  1. Install OpenSSH Server on your host if you don't have it:
sudo apt install openssh-server

You can then check its status on your system:

sudo systemctl status ssh
  1. Open the SSH port if the firewall is enabled on your host machine:
sudo ufw allow ssh
  1. Test the SSH connection on your client machine (get the IP address with ip a):
ssh username@ip_address
  1. On the PyCharm welcome screen, select Remote Development. Alternatively, from the main menu, select File | Remote Development.

  2. In the Run the IDE Remotely section, click SSH Connection.

  3. Configure the connection with the username and IP address you tested with above.

  4. Follow the prompts until you can find and open the project you want to work on in the host filesystem.

To disable SSH on your host machine later:

 sudo systemctl disable --now ssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment