In Windows, how do I transfer files using an SSH or SFTP client?
To transfer files to or from a server using SFTP, use an SSH or SFTP client. Following are three commonly used clients.
On this page:
WinSCP
- Open WinSCP. In the "Host name" field, enter the host name of the
server to which you are connecting (e.g.,
quarry.uits.indiana.eduormercury.uits.indiana.edu).
- In the "User name" field, enter your username for the host you
specified.
- In the "Password" field, type the password associated with the
username you entered in the previous step.
- Click
Login.
When the software connects to your host, a window should appear with your local computer's directories on the left and the remote host's directories on the right. To move a file from your computer to the server, drag it from the left pane to the desired location in the right pane. To move a file from the server to your computer, drag it from the right pane to the desired location in the left pane.
PuTTY
Connecting to a remote server
- To open the PSFTP part of the PuTTY application suite, from the
Startmenu, openPuTTY, and thenPSFTP.
- With the PSFTP login window open, type
openfollowed by the name of the host you are connecting to (e.g.,open quarry.uits.indiana.eduoropen mercury.uits.indiana.edu).
- If the
Store key in cache?prompt appears, typey.
- At the login prompt, enter your username for the remote
server.
- At the password prompt, enter your password associated with the username you entered in the previous step.
Once logged into the server, you will see the following command line prompt:
psftp>To move to a different directory, use the cd command. For
example, cd documents will place you in the
documents directory.
To display your current directory location, use the
pwd command.
When exploring directories on your local computer, use the same
commands, but add l (lowercase L) at the beginning (e.g.,
lcd documents).
To display the contents of a directory on the server, enter
dir or ls . To display the contents of
a directory located on your computer, you must run a local command
using ! . In this case, you would enter
!dir to display the contents of the current directory on
your computer.
Note: For a list of more commands, you can enter
help or see What is SFTP, and how do I use it to transfer files?
- Navigate to the directory containing the file you wish to
transfer.
- Navigate to the directory on your computer file system to which
you want to transfer the file.
- To transfer the file, type
get filename, replacingfilenamewith the name of the file you wish to transfer.
- Navigate to the directory on your computer file system containing
the file you wish to transfer.
- Navigate to the directory on the server file system to which you
want to transfer the file.
- To transfer the file, type
put filename, replacingfilenamewith the name of the file you wish to transfer.
SSH Secure Shell
Note: SSH Secure Shell Client for Windows is no longer available for download from IUware or SSH Communications. For alternative SSH and SFTP clients, see At IU, what SSH/SFTP clients are supported and where can I get them?
Connecting to a remote server
- To open a file transfer window, from the
Startmenu, selectPrograms, thenSSH Secure Shell, and thenSecure File Transfer Client.If SSH is already open, from the
Windowmenu, selectNew File Transfer. - From the
Filemenu, selectConnect....
- In the "Host Name:" field, type the name of the host to which you
are connecting (e.g.,
quarry.uits.indiana.eduormercury.uits.indiana.edu).
- In the "User Name:" field, enter your username for the host you
specified. Click
Connect.
- When you are prompted for a password, enter the password associated with the username you entered in the previous step.
When the software connects to your host, you should see the directories on your local computer on the left side, and the directories on the remote host on the right.
Note: If a Secure Shell client window opens instead of a file transfer window, the host you are connecting to does not support secure FTP.
Moving a file from your computer to a server- From the
Operationmenu, selectUpload....
- An
Upload - Select Fileswindow will open. Browse to and select the file you'd like to move.
- Click
Upload.
- Highlight (click) the file or folder on the server you'd like to
download.
- From the
Operationmenu, selectDownload....
- A
Download - Select Folderwindow will open. Browse to the folder where you'd like to place a copy of this file.
- Click
Download.
Last modified on January 26, 2011.







