Supercomputer

File Transter

How to Use scp

For the UNIX family, Mac OS X

This document explains how to copy a file from a local machine to 'slogin' (account:username) as an example. Copy the 'test.txt' file to /home/username of 'slogin' (slogin.hgc.jp). % ls
test.txt
% scp ./test.txt username@slogin.hgc.jp:/home/username

It is possible to abbreviate the forwarding target directory (as shown below) when copying to the home directory. % scp test.txt username@slogin.hgc.jp:

Moreover, please execute as shown below when copying to a sub-directory (e.g., /home/username/doc) under the home directory. % scp ./test.txt username@slogin.hgc.jp:doc/

Add the option '-pr' if copying the entire sub-directory. % scp -pr testdir/ username@slogin.hgc.jp:

Next, we consider the case of getting a file from 'slogin' using a local machine. As an example, we show how to copy a file (scptest.txt) from /tmp of 'slogin' to the home directory of the local machine. % scp username@slogin.hgc.jp:/tmp/scptest.txt ./

For Mac OS X, please use the file-transfer software 'Fugu', which uses scp. Please refer to the following URL for more information.
Fugu : http://rsug.itd.umich.edu/software/fugu/

For Windows
Software that uses ftp (e.g., FFFTP) is unsuitable. Please use sftp-compatible software such as WinSCP or FileZilla.
WinSCP : http://winscp.sourceforge.net/eng/download.php
FileZilla : http://sourceforge.net/projects/filezilla/
A message similar to the one below will be displayed at the first login, regardless of OS. The authenticity of host 'slogin.hgc.jp (202.175.151.54)' can't be established.
RSA key fingerprint is 3d:cf:c2:64:56:77:2f:4d:80:97:56:65:6e:44:2b:63.
Are you sure you want to continue connecting (yes/no)? yes
Please enter 'yes' to this message.

How to Use sftp

For the UNIX family, Mac OS X

Sftp has a similar interface to that of an ftp client. For example, it will explain how to upload a file from the local machine to 'slogin' (account:username).
Upload the file 'test.txt' to /home/username of 'slogin' (slogin.hgc.jp).

First, establish an sftp connection from the local machine to 'slogin'. % sftp slogin.hgc.jp
Connecting to slogin.hgc.jp...

Copy the 'test.txt' file on the local machine to 'slogin' (/home/username). sftp> put test.txt
Uploading test.txt to /home/username/test.txt
test.txt 100% 0 0.0KB/s 00:00
The upload is complete.

Exit sftp. sftp> bye
%

For Windows

Software that uses ftp (e.g., FFFTP) is unsuitable. Please use sftp-compatible software such as WinSCP or FileZilla.
WinSCP : http://winscp.sourceforge.net/eng/download.php
FileZilla : http://sourceforge.net/projects/filezilla/

A message similar to the one below will be displayed at the first login, regardless of OS. The authenticity of host 'slogin.hgc.jp (202.175.151.54)' can't be established.
RSA key fingerprint is 3d:cf:c2:64:56:77:2f:4d:80:97:56:65:6e:44:2b:63.
Are you sure you want to continue connecting (yes/no)? yes
Please enter 'yes' to this message.

Top of Page Top of Page

The University of Tokyo The Institute of Medical Science

Copyright©2005-2018 Human Genome Center