...
While SCP and SFTP are available out of the box on Linux and Mac systems, ITS also offers downloads of Fetch (login required) for MacOS and WS_FTP Professional (login required) for Windows from the ITS Software Download Site - ITS Help Desk - Information Technology Services at The University of Iowa site. In addition, SecureCRT also has SFTP capability. Below are some basic examples showing syntax for both tools.
...
Info |
---|
|
Duo dual factor authentication is required for SFTP and SCP to work. Ensure that you have a default request method for duo to authenticate. |
Note |
---|
title | Non-interactive shell output |
---|
|
Your client software will first try to establish a non-interactive session on the server. It will fail with an error if the non-interactive portion of your shell's startup prints anything. For the common case of bash, your ~/.bashrc configures non-interactive sessions, so make sure it contains no modifications which cause output. It's safe to place such modifications in ~/.bash_profile which only configures interactive logins. |
SCP
Panel |
---|
title | Copy file from local to the HPC system (note alternate port specification) |
---|
|
[user@local ~]$ scp -P 40 file1 hawkid@neonhawkid@argon.hpc.uiowa.edu:file1 |
Panel |
---|
title | Copy file from local to HPC system (note alternate port specification) |
---|
|
[user@local~]$ sftp -o port=40 hawkid@neonhawkid@argon.hpc.uiowa.edu
Connecting to neonargon.hpc.uiowa.edu...
sftp> put file1
Uploading file1 to /Users/hawkid/file1
file1 100% 840 0.8KB/s 00:00
sftp>
|
...
Panel |
---|
title | Copy directory from local to HPC system |
---|
|
[user@local~]$ sftp hawkid@neonhawkid@argon.hpc.uiowa.edu
Connecting to neonargon.hpc.uiowa.edu...
sftp> mkdir remote
sftp> put local/* remote/
Uploading local/file1
Uploading local/file2
Uploading local/file3
sftp> ls remote/
remote/file1
remote/file2
remote/file3
Info |
---|
This process is more involved in that one must create the directory remotely first and then transfer the contents from one to the other – wildcards are helpful for this. |
|
...