To transfer files to and from the cluster, we recommend the use of WinSCP, which is a graphical ftp-style program (but than one that uses the ssh way of communicating with the cluster rather then the less secure ftp) that is also freely available. WinSCP can be downloaded both as an installation package and as a standalone portable executable. When using the portable version, you can copy WinSCP together with your private key on a USB stick to have access to your files from any internet-connected Windows PC.
WinSCP also works together well with the PuTTY suite of applications. It uses the keys generated with the PuTTY key generation program, can launch terminal sessions in PuTTY and use ssh keys managed by pageant.
Transferring your files to and from the VSC clusters
The first time you make the connection, you will be asked to 'Continue connecting and add host key to the cache'; select 'Yes'.
- Start WinSCP and go the the "Session" category. Fill in the following information:
- Fill in the hostname of the VSC login node of your home institution. You can find this information in the overview of available hardware on this site.
- Fill in your VSC username.
- If you are not using pageant to manage your ssh keys, you have to point WinSCP to the private key file (in PuTTY .ppk format) that should be used. When using pageant, you can leave this field blank.
- Double check that the port number is 22.
- If you want to store this data for later use, click the "Save" button at the bottom and enter a name for the session. Next time you'll start WinSCP, you'll get a screen with stored sessions that you can open by selecting them and clicking the "Login" button.
- Click the "Login" button to start the session that you just created. You'll be asked for your passphrase if pageant is not running with a valid key loaded. The first time you make the connection, you will be asked to "Continue connecting and add host key to the cache"; select "Yes".
- The "commander mode" where you get a window with two columns, with the local directory in the left column and the host directory (remote directory) in the right column. You can then transfer files by dragging them from one column to the other.
- The "explorer mode" where you only see the remote directory. You can transfer files by dragging them to and from other folder windows or the desktop.
During the installation of WinSCP, you'll be prompted for a mode. But you can always change your mind afterwards and selct the interface mode by selecting the "Preferences" category after starting WinSCP.
When you experience trouble transferring files using WinSCP, the support team may ask you to enable logging and mail the results.
- To enable logging:
- Now just run WinSCP as you would do without logging.
- To mail the result if you used the default log file name %TEMP%\!S.log:
- Start a new mail in your favourite mail program (it could even be a web mail service).
- Click whatever button or menu choice you need to add an attachment.
Many mail programs will now show you a standard Windows dialog window to select the file. In many mail programs, the left top of the window will look like this (a screen capture from a Windows 7 computer):
Click right of the text in the URL bar in the upper left of the window. The contents will now change to a regular Windows path name and will be selected. Just type %TEMP% and press enter and you will see that %TEMP% will expand to the name of the directory with the temporary files. This trick may not work with all mail programs!
- Finish the mail text and send the mail to user support.