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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With