Forked from
SCS / docs.it4i.cz
1530 commits behind, 430 commits ahead of the upstream repository.
-
Lukáš Krupčík authoredLukáš Krupčík authored
transfer_sftp_anselm.screen 1.07 KiB
$ termrec transfer_sftp_anselm.ttyrec
# File transfer from local machine to Anselm cluster
# using sftp command
$ touch test_file.sftp
$ sftp -o IdentityFile=/home/local/.ssh/id_rsa rus016@anselm.it4i.cz
# list of all commands - help or ?
sftp> help
# display remote working directory on Anselm cluster
sftp> pwd
# display remote directory listing on Anselm cluster
sftp> ls -la
# display statistics for remote directory
sftp> df -h
# display local working directory on local linux machine
sftp> lpwd
# display local directory listing on local linux machine
sftp> lls -la
# now we can upload a file from linux machine to Anselm cluster
sftp> put test_file.sftp
# and then check if successfully uploaded
sftp> ls -l
# of course we can download a file from the cluster
sftp> get demo.tar.gz
# and check in local directory
sftp> lls -l
# delete local file from sftp
sftp>!rm demo.tar.gz
# quit sftp
sftp> exit
# login to Anselm cluster and check all transfered files
ssh -i /home/local/.ssh/id_rsa rus016@anselm.it4i.cz
$ls -l
# yes, all files are stored in home directory on the cluster