- 1 Overview
- 2 Installing and setting up WinSCP
- 3 Connecting to your server
- 4 Navigating within WinSCP
- 5 Uploading data
- 6 Creating sessions
- 7 Changing your preferences
- 8 Running SHELL commands
- 9 See also
WinSCP is a free application (for Windows) that allows you to make connections to remote computers for transferring files. This tutorial uses the SFTP protocol when connecting as that is what is always recommended you use. FTP can be used but is insecure and outdated, therefore it's not recommended.
This article walks you through the entire installation process.
Installing and setting up WinSCP
- Download WinSCP at http://winscp.net/eng/download.php.
- Run the program on your computer.
- On the first screen, select a language to start the installation process.
- Click the Next button to continue.
- To signify that you agree to the license agreement, click the Accept button to continue.
- Choose the 'Typical installation' radio button, and then click the Next button.
- Choose the 'Commander' radio button, and then click the Next button.
- Review the installation setup options, and then click the Install button to continue.
- Make sure the 'Launch WinSCP' checkbox is checked, and then click the Finish button to complete the setup.
Connecting to your server
|Note:||This article uses the SFTP protocol to connect. Make sure your user is an SFTP user before proceeding. Visit the following article for details:|
After WinSCP launches, you are presented with a dialog box to input your connection details:
- Visit the SFTP Credentails article to retrieve your SFTP credentials to connect.
- Enter the credentials into the corresponding text fields in the WinSCP dialog box:
- File protocol: SFTP
- Port number: 22
- User name:
- Click the Advanced button below the password field.
- On the left under the 'Environment' category, select the 'SFTP' option.
- Make sure the 'Allow SCP fallback' checkbox is unchecked.
- Click the OK button to go back to the WinSCP window.
- Click the Login button to connect via SFTP.
- Click the Yes button to accept the host key and to save it to your cache for future reference.
- You'll only have to do this once (unless the servers host key ever changes).
- You can check your SSH keys in the (Panel > 'Users' > 'SSH Keys") page of your panel to compare against this warning.
Once you've successfully connected, you'll see this window:
- In the left hand window, you'll see your local computer's drives, directories, and files.
- In the right hand window, you'll see the directories and files on the remote server.
Double-clicking on any of the directories expands them. Directories are typically listed at the top and files below (but you can change the sort order if you like). Double-click on the top folder (with the up-turned arrow) to go up to the parent directory. You can also use the drop-downs above to move between directories.
At this point, you can Drag & Drop directories and/or files between panels which will upload or download content.
The lock icon in the lower right hand corner indicates the type of encryption you're using for this connection:
- YELLOW = ENCRYPTED
- GREY = INSECURE
You can click on that icon for more information.
As stated above, to upload a file to your server, drag it from the left window to the right.
Review the information to confirm you're uploading the correct file, and then click the OK button to continue with the upload.
If you check the 'Transfer in background' checkbox, you can continue working while the transfer proceeds in the background. Otherwise, you'll see the dialog box showing the actual transfer progress in the foreground.
Sessions are saved connection settings. Creating a session allows you to connect to a server very quickly rather than having to input all of your data every time you want to connect.
- Click the 'Session' tab on the top menu.
- Choose 'New Session' from the dropdown.
- Just as you did when you initially made your first connection, enter the connection credentials for this new session.
- Click the Save button to save these credentials into a new session.
- This window allows the naming of the session that was programmed.
- The default name is probably perfect so you can use that (it's a combination of the user @ hostname which is a good description for the session); but, you can rename it anything you want.
- It's best to use whatever makes the most sense to you as you'll be the one using it.
Note: If you wish to save the password for this session, make sure to check the check box next to 'Save password'. If this is not checked, you'll need to enter the password the next time you attempt a connection with this session.
- Click the OK button to save.
After the session is saved, you will notice the saved session name on the left hand side of the WinSCP dialog box.
Connecting using a saved session
On the left side of the WinSCP dialog box you'll see your saved session. Double click it to connect.
Changing your preferences
There are several preferences you can adjust to make WinSCP more user friendly. To open Preferences, click the gear icon under the 'Options' tab:
Using the Commander interface
All examples above have been using the 'Commander' interface. This is recommended since it looks and acts like every other graphical FTP client which is very intuitive and simple. You can also use the 'Explorer' interface if you like.
- Click the gear icon under the 'Options' tab.
- Under the 'Environment' category (on the left, within the list of preferences), choose 'Interface'.
- You can choose between the 'Commander' and 'Explorer' interface options.
- If you change from one interface to the other, you won't see the change until you restart WinSCP.
Setting the maximum number of transfers at the same time
- Under the 'Transfer' category, choose 'Background'.
- To the right of 'Maximal number of transfers at the same time', choose a value. The example above sets this at 4.
Setting timeout values
- Under the 'Transfer' category, choose 'Endurance'.
- Review each option and set as necessary for the displayed time intervals.
Running SHELL commands
WinSCP offers a feature named 'Remote Command' to execute some shell/SSH commands.
|Note:||To use the 'Remote Command' feature, your user must be a SHELL user. In this article the user has been set up as an SFTP user. Visit the following article which explains how to adjust your user to become a SHELL user:|
- To enter 'Remote Command', select the 'Commands' tab from the top menu.
- From the 'Commands' dropdown, choose 'Open Terminal'.
- Click the OK button to proceed.
- The following window then appears
- You will now be able to enter shell/SSH commands to execute on your remote server environment.
- Enter shell/SSH commands in the 'Enter command' text field
- Click the Execute button to run the command
|Note:||WinSCP does not support commands that require terminal emulation or user input. If you require a fully featured terminal, you may find PuTTY to be more useful.|