Difference between revisions of "File transfer"
(moved newly-written intro to the Getting Started page (where it really belongs)) |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | A single, central file server, | + | A single, central file server, storage03.cac.cornell.edu, provides access to much of CAC's file storage for individual users. It serves the bulk of the home directories on linuxlogin as well as many private clusters. Here we look at various clients that can be used to transfer (i.e., copy) files to and from this server, mainly via linuxlogin. |
− | + | ====Linux and macOS users==== | |
− | |||
=====Secure Copy===== | =====Secure Copy===== | ||
Secure copy is a standard tool to copy files to and from remote hosts. | Secure copy is a standard tool to copy files to and from remote hosts. | ||
Line 11: | Line 10: | ||
=====Secure FTP===== | =====Secure FTP===== | ||
FTP is disabled for security reasons, but sftp's interface is nearly identical. | FTP is disabled for security reasons, but sftp's interface is nearly identical. | ||
+ | |||
=====Samba Client===== | =====Samba Client===== | ||
− | Type | + | This technique only works from Cornell campus locations or via a Cornell VPN connection. Type |
− | smbclient // | + | smbclient //storage03.cac.cornell.edu/<user name> -U ctc_ith\\<user name> |
− | Enter the password for your CAC account when prompted | + | (Note, the shell interprets \\ as a single backslash.) Enter the password for your CAC account when prompted. |
− | You will see the '''''smb:\>''''' prompt. | + | You will see the '''''smb:\>''''' prompt. Now you can start transferring files between your local machine |
− | + | and your CAC home directory, using commands similar to the sftp client. Type '''''help''''' for more instructions. | |
− | + | -bash-4.1$ smbclient //storage03.cac.cornell.edu/<user name> -U ctc_ith\\<user name> | |
− | + | Enter ctc_ith\<user name>'s password: | |
− | + | Domain=[CTC_ITH] OS=[Unix] Server=[Samba 3.6.23-24.el6_7] | |
+ | smb: \> help | ||
− | ==== | + | ====Windows users==== |
− | |||
=====Secure Copy===== | =====Secure Copy===== | ||
− | The | + | The individual who created PuTTY provides a secure copy client called [//www.chiark.greenend.org.uk/~sgtatham/putty/download.html pscp]. From the command prompt, type: |
cmd> pscp localfile.dat username@linuxlogin.cac.cornell.edu:remoteinput.dat | cmd> pscp localfile.dat username@linuxlogin.cac.cornell.edu:remoteinput.dat | ||
<enter your username's password when prompted> | <enter your username's password when prompted> |
Latest revision as of 21:01, 16 October 2019
A single, central file server, storage03.cac.cornell.edu, provides access to much of CAC's file storage for individual users. It serves the bulk of the home directories on linuxlogin as well as many private clusters. Here we look at various clients that can be used to transfer (i.e., copy) files to and from this server, mainly via linuxlogin.
Linux and macOS users
Secure Copy
Secure copy is a standard tool to copy files to and from remote hosts.
localhost$ scp localfile.dat username@linuxlogin.cac.cornell.edu:remoteinput.dat localhost$ scp username@linuxlogin.cac.cornell.edu:results.dat localresults.dat
Secure FTP
FTP is disabled for security reasons, but sftp's interface is nearly identical.
Samba Client
This technique only works from Cornell campus locations or via a Cornell VPN connection. Type
smbclient //storage03.cac.cornell.edu/<user name> -U ctc_ith\\<user name>
(Note, the shell interprets \\ as a single backslash.) Enter the password for your CAC account when prompted. You will see the smb:\> prompt. Now you can start transferring files between your local machine and your CAC home directory, using commands similar to the sftp client. Type help for more instructions.
-bash-4.1$ smbclient //storage03.cac.cornell.edu/<user name> -U ctc_ith\\<user name> Enter ctc_ith\<user name>'s password: Domain=[CTC_ITH] OS=[Unix] Server=[Samba 3.6.23-24.el6_7] smb: \> help
Windows users
Secure Copy
The individual who created PuTTY provides a secure copy client called pscp. From the command prompt, type:
cmd> pscp localfile.dat username@linuxlogin.cac.cornell.edu:remoteinput.dat <enter your username's password when prompted> cmd> pscp username@linuxlogin.cac.cornell.edu:results.dat localresults.dat
Secure FTP
FTP is disabled for security reasons, but psftp's interface is nearly identical. From the command prompt, type:
cmd> psftp username@linuxlogin.cac.cornell.edu <enter your username's password when prompted> psftp> put localresults.dat results.dat psftp> quit