File Transfer between a Unix Client and a Windows/Unix Server
Note: This page outlines secure methods for transferring files between a Unix client and a Windows or Unix server. If you are transferring files between other systems, please see the File Transfer page to find the secure method that's right for your needs.
| Recommended File Transfer Options | ||||||||
|---|---|---|---|---|---|---|---|---|
| SFTP/SCP | WebDAV | FTP over SSL (FTPS) |
Microsoft File Sharing (SMB/CIFS) |
|||||
| Unix Client & Win/Unix Server |
X |
|||||||
What is SFTP/SCP?
SFTP (Secure File Transfer Protocol) is a file transfer protocol similar to FPT but with additional security (both commands and data are encrypted). The SFTP client talks to the SSH daemon on the server. When you use SFTP, you can transfer files and also perform some simple file and directory commands such as listing files and changing directories.
SCP (Secure Copy Protocol) is a secure file transfer protocol. The SCP client talks to the SSH daemon on the server. It is used only for transferring files. To use SCP, you must know the exact directory tree of the destination location.
- Server Setup
- Client Setup
- Transfer Files using SFTP
- Transfer Files using SCP
- Unattended File Transfer
Server Setup
- Unix servers come with the SSH daemon installed and configured.
- By customer request on managed Windows servers, CIT will install Cygwin which provides an SSH daemon.
Client Setup
No additional setup is required.
Transfer Files using SFTP
- At the command prompt, enter:
sftp userid@server_name. - After connecting to the server, you can use standard commands including cd, dir, get, and put.
For example, sftp wrhse@warehouse.cit.cornell.edu.
You may be prompted to enter your password.
To transfer files to the server, enter:
put june06extract
Transfer Files using SCP
- At the command prompt, enter:
scp source_file_name userid@server_name:/path/destination_file_name.For example, scp june06extract wrhse@warehouse.cit.cornell.edu:/mydata/june06extract.
Unattended File Transfers
If you want run an unattended server to server file transfer, see Unattended Server to Server File Transfers: Unix to Unix.
