Configuring Remote Interpreters via SSH
sshserver should run on a remote host, since PyCharm runs remote interpreter via ssh-session.
If you want to copy your sources to a remote computer, create a deployment configuration, as described in the section Creating a Remote Server Configuration.
Configuring remote Python interpreter via SSH credentials
To configure a remote Python interpreter via SSH credentials
- From the drop-down list, choose
The dialog box Add Python Interpreter opens..
In the left-hand pane of the Add Python Interpreter dialog box, click SSH Interpreter.
In the right-hand pane select New server configuration, then specify server information (host, port, and username). Alternatively, you can select Existing server configuration and choose any available deployment configuration from the list. If needed, click to review the Connection settings, Mappings, and Excluded paths for the selected deployment configuration. Click Next to continue configuring an interpreter.
- In the next dialog window, provide the authentication details to connect to the target server.
Select Password or Key pair (OpenSSL or PuTTY) and enter your password or passphrase.Click Next to proceed with the final configuration step.
In the next dialog window, verify the path to the desired Python interpreted. You can accept default, or specify a different one. You have to configure the path mappings between your local project and the server. To do that, click next to the Sync folders field and enter the path to the local project folder and the path to the folder on the remote server.
You can also select the lowest checkbox to enable automatic upload of the local changes to the remote server.
Click Finish to complete adding an interpreter.