Difference between revisions of "File transfer"
(→Samba Client: corrected and updated instructions for smbclient) |
|||
Line 12: | Line 12: | ||
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 //storage01.cac.cornell.edu/<user name> -U <user name> | + | smbclient //storage01.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 //storage01.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 | ||
====MacOS X users==== | ====MacOS X users==== |
Revision as of 17:05, 30 June 2016
A single, central file server, storage01.cac.cornell.edu, serves all CAC user home directories. You can connect to this server in a variety of ways from any operating system to access your files.
Note: by default, your home directory and its contents will be readable and executable by all other users of CAC systems. If this is not what you want, you can change the permissions of the home directory and its files and subdirectories via the standard Linux or Windows mechanisms. However, be aware that this may lead to conflicts for cross-platform applications, as Windows and Linux permissions are not 100% compatible.
Linux 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 //storage01.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 //storage01.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
MacOS X users
Windows users
Secure Copy
The people who make Putty provide 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