Center for Computational Materials Science
Institute for Materials Research,
Tohoku University

How to File Transfer

  1. Windows
  2. Mac or Linux

Windows PC

How to transfer files using WinSCP.

(1) Convert private key

  1. You can not use OpenSSH private key in WinSCP. To use OpenSSH private key, you need to convert it to PuTTY private key via PuTTYgen. Download puttygen.exe.
  2. Execute the downloaded puttygen.exe and select "Import Key" from the "Conversions" menu.
  3. Click "Load" and browse to the location of the private key file that you want to convert. PuTTYgen displays the following window. Input the passphrase of your private key.
  4. When you click "OK", PuTTYgen displays a dialog box with information about the key you loaded, such as the public key and the fingerprint.
    Click "Save private key" to save the key in PuTTY's format.

(2) File transfer using WinSCP

  1. Start WinSCP.
  2. Click "Advanced ..." in the Login window.
  3. Select "Tunnel" fo "Connection", and check "Connect through SSH tunnel". In "Host to setup tunnel on", put "", your UserID(Example:user01) and private key. Then click "OK" button.
  4. Select "Session" and put the hostname ( and your UserID.
  5. Click "Save..." button.
    In the next time, the procedures of 2-4 can be omitted and simply clock "Login" button in 5.
  6. Enter your passphrase and click "OK" button.
  7. Enter your password and click "OK" button.
  8. You can transfer files once the directories appear as shown below.

Mac or Linux

Create the ssh config file.

This is an example sftp command.

[username@machine]$ sftp
Enter passphrase for key ‘/home/username/.ssh/keys/id_rsa’: passphrase
password: password
Connected to sftp:~>

This is an example scp command.

[username@machine]$ scp program.f