Esparami
Esparami

Reputation: 21

[Atom][Remote-ftp][colfax] Unable to connect remote server

I'm recently trying to work on the Intel® AI DevCloud, please see Connecting from Linux or a Mac.

I can connect the remove server colfax via SSH. But I'm not able to set atom-remote-ftp .ftpconfig correctly for colfax.

Here is what I did:

  1. download the linux access key and put it at key_path
  2. add

    Host colfax
    User xxxxxx
    IdentityFile key_path
    ProxyCommand ssh -T -i key_path [email protected]
    
  3. logging in use

    ssh colfax
    

Would anyone please let me know what should be the host(?), usr(xxxxxx) and pass("")?

{
    "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":[]
}

code refer to @Sanjay Verma at [Atom][Remote-ftp] Unable to connect ftps/ftpes . Thank you!

Upvotes: 1

Views: 556

Answers (1)

Dilraj Madhava
Dilraj Madhava

Reputation: 46

Please find the procedure below

Host colfax
User uXXXX
IdentityFile ~/Downloads/colfax-access-key-xxxx
ProxyCommand ssh -T -i ~/Downloads/colfax-access-key-xxxx [email protected]

Set the correct restrictive permissions on the private SSH. To do this, run the following commands in a terminal:

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

After the preparation steps above, you should be able to log in to your login node

ssh colfax 

Once your connection is set up, you can copy local files to your login node like this:

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

Upvotes: 1

Related Questions