Transferring files over SFTP: Difference between revisions
From ULYSSIS documentation
|
|
(8 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| ULYSSIS doesn't support ftp, because it is insecure. However, we support sftp (ftp over ssh).
| | #REDIRECT [[Accessing your files]] |
| This works similar as ssh.
| |
| | |
| On the server, your files are located in <code>/home/group/username/</code>. For a normal user with username <code>username/</code> this will be <code>/home/user/username/</code>, for an organisation with username <code>organisation/</code> this will be <code>/home/org/organisation/</code> etc.
| |
| | |
| ==Non-graphical methods==
| |
| | |
| The most common way to transfer files is with a terminal by using the <code>scp</code> command.
| |
| | |
| Copying file to host:
| |
| scp SourceFile user@host:directory/TargetFile
| |
| If you want to copy an '''empty''' file, you have to add -r, for example:
| |
| scp -r 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]].
| |
| | |
| [[Category:Files]]
| |
| [[Category:Shell]]
| |
Latest revision as of 16:09, 9 August 2021