SCP via command line

From SHellium Wiki
Jump to: navigation, search
Geographylogo.png In other languages: English | Afrikaans | Albanian | Arabic | Brazilian | Bulgarian | Catalan | Chinese | Croatian | Czech | Danish | Dutch | Esperanto | Estonian | Filipino | Finnish | Flemish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Latvian | Lithuanian | Macedonian | Malay | Malayalam | Norwegian (Bokmål) | Norwegian (Nynorsk) | Persian | Polish | Portuguese | Romanian | Russian | Serbian | Slovak | Slovenian | Spanish | Swedish | Turkish | Ukrainian | Urdu

uploading a local file to your SHellium.org account

Let's say the file you are trying to upload is called upload.me. We also say that your SHellium.org username is abcd. You are trying to upload upload.me to your SHellium.org's home-directory (which is called ~/). Just type the following into your command line (NOTE: We suggest that upload.me is in your current workdir):

scp upload.me abcd@ssh.SHellium.org:~/

After you typed your password you have to wait a few seconds (depending on the filesize) - after that you'll find the file upload.me in your SHellium.org's home-directory.

You can upload a directory too.

scp -r directory abcd@ssh.SHellium.org:~/

and you found the directory ~/directory/

downloading files from your SHellium.org account to your local harddisk

Downloading files from your SHellium.org account to your local harddisk isn't that hard. Let's say your username is abcd again, and the file you are trying to download to your local harddisk (into your local /tmp directory) is ~/test.file (test.file is in your SHellium.org's home-directory as the ~ (tilde) suggests) On your local computer do:

scp abcd@ssh.SHellium.org:~/test.file /tmp/

After you typed in your password, scp will download the file from your SHellium.org account to your harddisk.

You can download a directory too.

scp abcd@ssh.SHellium.org:~/directory/ /tmp/
Personal tools
Namespaces

Variants
Actions
Navigation
Indexes
SHellium Sites
Toolbox