[Atom] [Remote-ftp] [colfax]无法连接远程服务器

时间:2018-04-26 22:08:40

标签: atom-editor

我最近尝试使用英特尔®AIDevCloud,请参阅Connecting from Linux or a Mac

我可以通过SSH连接删除服务器colfax。但是我无法为.ftpconfig正确设置atom-remote-ftp colfax

这是我做的:

  1. 下载linux访问密钥并将其放在key_path
  2. 添加

    Host colfax
    User xxxxxx
    IdentityFile key_path
    ProxyCommand ssh -T -i key_path guest@cluster.colfaxresearch.com
    
  3. 登录使用

    ssh colfax
    
  4. 有谁请让我知道应该是主持人(?),usr(xxxxxx)和传递(“”)?

    {
        "protocol": "ftp",
        "host": "***FTP_HOSTNAME_HERE***",
        "port": 21,
        "user": "***YOUR_USERNAME_HERE***",
        "pass": "***YOUR_PASSWORD_HERE***",
        "promptForPass": false,
        "remote": "***REMOTE_PATH_HERE***",
        "secure": true,
        "secureOptions": {"rejectUnauthorized": false, "requestCert": true, "agent": false},
        "connTimeout": 10000, // integer - How long (in milliseconds) to wait for the control connection to be established. Default: 10000
        "pasvTimeout": 10000, // integer - How long (in milliseconds) to wait for a PASV data connection to be established. Default: 10000
        "keepalive": 10000, // integer - How often (in milliseconds) to send a 'dummy' (NOOP) command to keep the connection alive. Default: 10000
        "watch":[]
    }
    

    代码在[Atom][Remote-ftp] Unable to connect ftps/ftpes引用@Sanjay Verma。谢谢!

1 个答案:

答案 0 :(得分:1)

请找到以下程序

Host colfax
User uXXXX
IdentityFile ~/Downloads/colfax-access-key-xxxx
ProxyCommand ssh -T -i ~/Downloads/colfax-access-key-xxxx guest@cluster.colfaxresearch.com

在专用SSH上设置正确的限制权限。为此,请在终端中运行以下命令:

chmod 600 ~/Downloads/colfax-access-key-xxxx
chmod 600 ~/.ssh/config

完成上述准备步骤后,您应该能够登录登录节点

ssh colfax 

设置连接后,您可以将本地文件复制到登录节点,如下所示:

scp /path/to/local/file colfax:/path/to/remote/directory/