Pycharm

Add deployment server on pycharm
1. Preferences >> build, execution, deployment >> deployment

2. Add new deployment

3. Choose name and type SFTP.

4. SFTP host:

5. Port: 7777 (compatible without its initial run)

6. Root path: /

7. Username: root (compatible with activate ssh-server)

8. Password: XXXXXX (compatible with activate ssh-server) ; mark save password

9. Mapping: map your script dir to the desired path on server

Open remote python interpreter
1. Preferences >> project: >> project interpreter

2. Add interpreter from project interpreter scroll-down list

3. Choose ssh interpreter

4. existing server configuration

5. create copy of this deployment in IDE settings

6. Sync folders: map local path to desired remote path

7. Path mappings should be set by deployment configurations.