cianius
cianius

Reputation: 2412

moving a file from local machine to cluster

So I know this will sound very simple, because I'm sure it is. I know when you want to move a file you can use cp or mv in a linux terminal to move from one directory to another. My problem is how do you do it when you want to move a file from your local machine to say a cluster.

To access the cluster, I ssh into it and I have a directory there. Ive tried the absolute filepaths, but that clearly wouldnt work.

Upvotes: 3

Views: 17003

Answers (1)

Nejc
Nejc

Reputation: 700

You use the scp command:

scp \path\to\your\file.txt user@cluster_address:\path\in\cluster

then it asks you for the password, which is the same as the one for ssh.

Another option is that you can also mount the directory of the cluster machine using sshfs and then you can normaly do cp and mv in the mounted directory.

Upvotes: 8

Related Questions