File | Settings | Tools | SSH Terminal for Windows and Linux PyCharm | Preferences | Tools | SSH Terminal for macOS Ctrl+Alt+S
Use this dialog box to appoint the a remote Web server or the default remote interpreter to access through the SSH terminal, configure connection with the destination environment, and choose the encoding to use in the SSH terminal.
Make sure the SSH Remote Run plugin is enabled. The plugin is activated by default. If the plugin is disabled, enable it on the Plugins settings page as described in Managing Plugins.
In this section, appoint the a remote Web server or the default remote interpreter to access through the SSH terminal and specify where the connection settings should be taken from:
Default remote interpreter: select this option to have commands in the SSH terminal executed on the same host, where the default remote interpreter runs.
Deployment server: select this option to have the commands in the SSH Terminal executed on the local or remote Web server accessible through one of the server access configurations. From the drop-down list, choose the server access configuration that specifies the destination environment and the settings to establish connection to it.
Select server on every run: if this option is selected, you will have to choose the desired server access configuration from the pop-up window, every time you choose Tools | Start SSH Session on the main menu.