Transferring files over SFTP: Difference between revisions

From ULYSSIS documentation
No edit summary
Line 6: Line 6:
==Non-graphical methods==
==Non-graphical methods==


The most common way to transfer files is with a terminal by using the <code>scp</code> command.<br/>
The most common way to transfer files is with a terminal by using the <code>scp</code> command.
Copying file to host:<br>
<code>scp SourceFile user@host:directory/TargetFile</code><br>
Copying file from host:<br>
<code>scp user@host:directory/SourceFile TargetFile
scp -r user@host:directory/SourceFolder TargetFolder</code>


You don't need to use the full path to your file. You may you the relative path, starting from your home directory. For example:<br>
Copying file to host:
<code>scp index.html user@ssh1.ulyssis.org:www/index.html</code>
scp SourceFile user@host:directory/TargetFile
Copying file from host:
scp user@host:directory/SourceFile TargetFile
scp -r user@host:directory/SourceFolder TargetFolder
 
You don't need to use the full path to your file. You may you the relative path, starting from your home directory. For example:
scp index.html user@ssh1.ulyssis.org:www/index.html


==Graphical methods==
==Graphical methods==

Revision as of 02:37, 26 October 2019

ULYSSIS doesn't support ftp, because it is insecure. However, we support sftp (ftp over ssh). This works similar as ssh.

On the server, your files are located in /home/group/username/. For a normal user with username username/ this will be /home/user/username/, for an organisation with username organisation/ this will be /home/org/organisation/ etc.

Non-graphical methods

The most common way to transfer files is with a terminal by using the scp command.

Copying file to host:

scp SourceFile user@host:directory/TargetFile

Copying file from host:

scp user@host:directory/SourceFile TargetFile
scp -r user@host:directory/SourceFolder TargetFolder

You don't need to use the full path to your file. You may you the relative path, starting from your home directory. For example:

scp index.html user@ssh1.ulyssis.org:www/index.html

Graphical methods

The graphical methods are explained in Accessing your files.