CCMS

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

How to Transfer File

  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.
    PuTTYgen_window1
  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.
    PuTTYgen_window2
  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.
    PuTTYgen_window3
    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 "cms-ssh.sc.imr.tohoku.ac.jp", your UserID(Example:user01) and private key. Then click "OK" button.
    WinSCP_window1
  4. Select "Session" and put the hostname (example:super.sc.imr.tohoku.ac.jp) and your UserID.
    WinSCP_window2
  5. Click "Save..." button.
    WinSCP_window3
    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.
    WinSCP_window4
  7. Enter your password and click "OK" button.
    WinSCP_window5
  8. You can transfer files once the directories appear as shown below.
    WinSCP_window6

Mac or Linux

Create the ssh config file.

This is an example sftp command.

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

This is an example scp command.

[username@machine]$ scp program.f gpu.sc.imr.tohoku.ac.jp:/home/username/