1、点击“设置”,然后点击‘添加服务器’。

python 一直连接服务器 python怎么连接服务器_运维

2、选择SSH方法,注意在此之前一定要先在服务器中提前租好服务器,配置好服务器的环境。 

python 一直连接服务器 python怎么连接服务器_运维_02

 3、将自己在服务器中创建的实例的登录指令

python 一直连接服务器 python怎么连接服务器_文件名_03

复制下来,并粘贴在出来,就可以看到下面的登录码:

python 一直连接服务器 python怎么连接服务器_python 一直连接服务器_04

,上图的主机处输入:

python 一直连接服务器 python怎么连接服务器_python 一直连接服务器_05

,端口就是

python 一直连接服务器 python怎么连接服务器_python 一直连接服务器_06

,用户名:root,点击下一步进入下图:

python 一直连接服务器 python怎么连接服务器_文件名_07

4、复制实例的密码,然后粘贴进去,点击下一步,进入下图

python 一直连接服务器 python怎么连接服务器_python_08

5、直接点击下一步,进入下图,这时我们直接选择‘系统解释器’。

python 一直连接服务器 python怎么连接服务器_运维_09

root-miniconda3-envs-环境名-python;同步文件名:只需要本地路径是你电脑现在打开的python文件即可,远程路径一般是换一个实例自动换一个远程路径,但新创建的是一个空的文件夹,所以你需要连接以前你存有可用文件的远程文件夹。(在此建议对于需要经常使用的远程路径进行特殊命名,方便以后调用。)

python 一直连接服务器 python怎么连接服务器_运维_10

python 一直连接服务器 python怎么连接服务器_运维_11

7、一旦没设置好远程路径就会导致出现下面的情况:

python 一直连接服务器 python怎么连接服务器_运维_12

当远程路径缺少某些文件时,需要通过x-ftp进行远程传输拖动到你现有的远程路径中,具体方法如下:

python 一直连接服务器 python怎么连接服务器_文件名_13

python 一直连接服务器 python怎么连接服务器_python_14

8、一旦上传好,记得进行刷新

python 一直连接服务器 python怎么连接服务器_运维_15