⚠️⚠️⚠️ If you are using zsh terminal on your Mac, you can have this error:
/etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
Despite this error the commands work. But if you want to solve the problem, you can follow the steps in here.
Use MobaXterm. This is a GUI-based scp client for MS Windows-based computers that has a drag-and-drop
facility and an inbuilt file editor. If you have cygwin installed, you can open a cygwin-terminal and then use ssh the
same as Linux and Mac below.
● Download MobaXterm
scp file-to-name USERNAME@login.kuacc.ku.edu.tr:/HOME_DIR/SUB_FOLDER/new-filename
This will copy the file to a SUB_FOLDER and renaming it to new-filename. The destination folder must be a valid address. So SUB_FOLDER must be an existing folder.
As an example, lets copy a file from Desktop to home folder of HPC Cluster:
rsync
is a fast and versatile command-line utility for synchronizing files and directories between two locations over a remote shell, or from/to a remote Rsync daemon. You will be using rsync for most of the time. It provides fast incremental file transfer by transferring only the differences between the source and the destination.
rsync [OPTION]... [SRC]... DEST
rsync [OPTION]... [SRC]... [USER@]HOST:DEST
rsync [OPTION]... [USER@]HOST:SRC... [DEST]
rsync [OPTION]... [USER@]HOST:SRC... [DEST]
rsync -a USERNAME@host:relative path of the file/folder destination
Now, lets copy Morse.jl folder which is on cluster to the Destop under the folder which is named as rsync-test.
In my cluster account, this time, I have Morse.jl, logs, work folder and goehash.py
Windows: Mobaxterm, Winscp, Filezilla
Linux: sftp, Filezilla
Mac: Cyberduck, Filezilla
Note: You should use following parameters.
Host: login.kuacc.ku.edu.tr
Username: KU-username
Password: KU-password
Port:22
If your data is big and you are using VPN, previous solutions can be slow to copy files. You can use rclone tool with your Google Drive/Dropbox.
Firstly, you need to register to your Gdrive/Dropbox account. Then, you can follow the steps on:
https://www.howtogeek.com/451262/how-to-use-rclone-to-back-up-to-google-drive-on-linux/
rclone mkdir remote:folder rclone ls remote:folder rclone lsd remote:folder rclone copy remote:folder destination_folder
You can find extended command list here.
This option is not very recommended but you can find the necessary documentation on:
After adding the necessary software, if you are a Linux user, create a directory under mnt folder:
sudo mkdir /mnt/mountfolder
If you are a MacOS user, create a folder which you has write and read permissions:
workfolder
on the cluster to the mountFolder
.
sshfs USERNAME@HOST:destination-of-folder-which-will-be-mounted destination-of-target-folder
mountFolder
content: