1、点击“设置”,然后点击‘添加服务器’。
2、选择SSH方法,注意在此之前一定要先在服务器中提前租好服务器,配置好服务器的环境。
3、将自己在服务器中创建的实例的登录指令
复制下来,并粘贴在出来,就可以看到下面的登录码:
,上图的主机处输入:
,端口就是
,用户名:root,点击下一步进入下图:
4、复制实例的密码,然后粘贴进去,点击下一步,进入下图
5、直接点击下一步,进入下图,这时我们直接选择‘系统解释器’。
root-miniconda3-envs-环境名-python;同步文件名:只需要本地路径是你电脑现在打开的python文件即可,远程路径一般是换一个实例自动换一个远程路径,但新创建的是一个空的文件夹,所以你需要连接以前你存有可用文件的远程文件夹。(在此建议对于需要经常使用的远程路径进行特殊命名,方便以后调用。)
7、一旦没设置好远程路径就会导致出现下面的情况:
当远程路径缺少某些文件时,需要通过x-ftp进行远程传输拖动到你现有的远程路径中,具体方法如下:
8、一旦上传好,记得进行刷新