transferring_files
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
transferring_files [2020/09/22 06:28] – one more format peteyboy | transferring_files [2025/03/24 20:51] (current) – [scp and sftp - secure copying and ftp] add link to other ssh tunnel and file transfer page peteyboy | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== File Transfer Tutorial ====== | ||
+ | |||
+ | This tutorial discusses various ways to get data from and to a local (external) machine into and out of SDF. | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | To transport data between SDF and your local (or any other external) machine, there are various ways. Their availability depends on your member level on SDF (see the [[http:// | ||
+ | |||
+ | As of this writing, the [[https:// | ||
+ | ^ File Transfer Options by Membership Level ^^ | ||
+ | ^ Membership | ||
+ | | USER (unvalidated) | ||
+ | | USER (validated) | ||
+ | | ARPA | above, plus outbound telnet, ssh, sftp, ftp, ytalk, irc, snarf, wget | | ||
+ | | META | above, plus on the metaarray: ssh tunnel/ | ||
+ | |||
+ | ===== FTP - File Transfer Protocol ===== | ||
+ | |||
+ | [[wp> | ||
+ | |||
+ | For download, point your FTP program to sdf.org and do anonymous FTP to read data (username " | ||
+ | |||
+ | ===== scp and sftp - secure copying and ftp ===== | ||
+ | |||
+ | scp and sftp are secure ways to transfer data between computers, based on ssh (secure shell). If you've only worked with ftp before, you'll be surprised at the ease and benefits to using scp. | ||
+ | |||
+ | Let's say you're logged into sdf and you want to transfer some pictures from your home machine (named foo in this example) to your sdf home directory. You would want to use the following command: | ||
+ | |||
+ | scp *.jpg me@sdf.org :/ | ||
+ | |||
+ | Let's break that down: | ||
+ | |||
+ | * **scp: | ||
+ | * ***.jpg:** The files you want to transfer. | ||
+ | * **me@sdf.org: | ||
+ | * **:/ | ||
+ | |||
+ | Unless you've installed ssh authorization keys, you'll be prompted for your username and password. Afterwhich, you should have output similar to this: | ||
+ | |||
+ | [me@local Pictures]# scp *.jpg me@sdf.org: | ||
+ | IMG_016.jpg 100% 1802KB 45.7KB/s 00:39 | ||
+ | IMG_017.jpg 100% 1253KB 46.1KB/s 00:40 | ||
+ | IMG_018.jpg 100% 1243KB 48.6KB/s 00:25 | ||
+ | IMG_020.jpg 100% 1131KB 45.9KB/s 00:39 | ||
+ | [foo@local Pictures]# | ||
+ | |||
+ | On SDF, //you need to have ARPA membership to be able to use them//. Check the manpages of scp and ssh for more information and options to use. | ||
+ | |||
+ | On Windows machines, you can use the [[# | ||
+ | |||
+ | ===== ssh and tar - securely copying directories ===== | ||
+ | |||
+ | The tar archiving tool can be used with ssh to quickly duplicate whole directory trees: | ||
+ | |||
+ | tar cf - // | ||
+ | |||
+ | Note: this trick requires compatible versions of tar on the local and remote systems | ||
+ | |||
+ | ===== Gopher and HTTP - using the internet for download ===== | ||
+ | |||
+ | To get data out of SDF on a local machine, you can of course publish them on your gopher- or web-site. Please check [[gopher_site_setup_and_hosting_features|Gopher]], | ||
+ | |||
+ | Please note that HTTP traffic is bandwidth limited depending on your membership level; if you go over the quota, your site will be temporarily blocked! | ||
+ | |||
+ | To prevent access by everybody, see the FAQ entry about [[http:// | ||
+ | |||
+ | ===== Terminal - direct copying via the terminal ===== | ||
+ | |||
+ | For transferring small amount of text data (scripts, tables, source code snippets), think about copy/paste directly in the terminal! If you are [[http:// | ||
+ | |||
+ | To append text input in the terminal to a file on SDF, you can open the file on SDF in your favourite [[http:// | ||
+ | |||
+ | ===== E-mail - for small files only ===== | ||
+ | |||
+ | If you have to transfer binary data and cannot use scp (because you're not [[http:// | ||
+ | |||
+ | This may not work for large attachments, | ||
+ | |||
+ | ===== Modem transfers ===== | ||
+ | * x/y/zmodem transfers : //TBD// | ||
+ | * kermit transfers : //TBD// | ||
+ | |||
+ | ===== Glossary ===== | ||
+ | |||
+ | **ARPA and MetaARPA:** These are additional [[http:// | ||
+ | |||
+ | |||
+ | **download: | ||
+ | |||
+ | |||
+ | **[[http:// | ||
+ | |||
+ | |||
+ | **[[http:// | ||
+ | |||
+ | |||
+ | **terminal: | ||
+ | |||
+ | **upload:** to get data //to SDF// from your local machine; see // | ||
+ | |||
+ | Legacy link: http:// | ||
+ | |||
+ | $Id: filetransfer.html, | ||