You are here: Home Documentation Linux Tutorials File Transfer

File Transfer

Trasfering files to/from wrg home directories.

Your computer services home directories will not be available on wrg machines, either at York or at a remote site. Every wrg user is allocated a home directory on the wrg file server.

To find your home directory, from a console on pascali (the login head node), run echo $HOME

.

Before you are able to use a file on the wrg it must be transfered to your wrg home directory. This is achieved using secure copy or secure ftp (file transfer protocol).

From windows

WinSCP is a simple, free, graphical scp and sftp interface for windows. It can be downloaded from http://winscp.net/eng/download.php . Download the standalone application and place it on your desktop.

To start an sftp session, run winscp (by double clicking on its icon). The first time you use it you will need to enter session details. Use host: login.wrg.york.ac.uk; port:22 and enter your username and password (leave the box labled private key file empty unless you know what this means), then select save.

You should now be presented with a list containing a single entry of the form: username@pascali.wrg.york.ac.uk. Select this entry and click the login button.

You should now be asked if you wish to store the servers rsa2 key file and continue, select yes.

Finally, you should now see a file transfer window with two panels. The left panel showing local files, the right panel showing the wrg file system. Files can simply be dragged between these windows to copy them.

From unix command line

to copy files from the unix command line, use scp. The scp command takes the form: scp source destination. where source and destination can be either a local file name or a remote file name. Remote filenames are of the form: user@hostname:filename.

For example:

scp test.txt me@login.wrg.york.ac.uk:.

will copy the file test.txt into your directory on wrg. To retrieve the file we would use:

scp me@login.wrg.york.ac.uk:test.txt .

We can also copy an entire directory using the -r (recursive) flag.

scp -r test_dir me@login.wrg.york.ac.uk:.

will copy the directory test_dir and all its contents to your home directory on wrg.

If you are familiar with the ftp command, you can also use sftp: sftp username@login.wrg.york.ac.uk

linux gui: konqueror

Konqueror is an linux file and web browser with built in support for sftp. Konqueror is part of the kde desktop environment and is installed on many Linux distributions.

Start konqueror either from the launch menu or command line and in the location bar enter: sftp://login.wrg.york.ac.uk and enter your username and password when asked.

Document Actions

Please refer to the legal disclaimer covering content on this site.