file transfers over ssh

26
File Transfers over SSH James Watt

Upload: sukey

Post on 05-Jan-2016

28 views

Category:

Documents


1 download

DESCRIPTION

File Transfers over SSH. James Watt. Here is an example of what you might have to do if you wish to copy a file from SERVERA onto SERVERB. For a 800mb file, it would take 39 minutes to dowload and then 3 hours 20 minutes to upload. That’s about 4 hours. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: File Transfers over SSH

File Transfers over SSH

James Watt

Page 2: File Transfers over SSH

Here is an example of what you might have to do if you wish to copy a file from SERVERA onto SERVERB.

For a 800mb file, it would take 39 minutes to dowload and then 3 hours 20 minutes to upload. That’s about 4 hours.

Page 3: File Transfers over SSH

With a shell account, you can log directly into a server. From there, you can give the server commands and it will do them as if you were physically on that machine.

Here I connect to Server B with SSH and tell it to download the 800mb file directly from Server A. This removes me from the middle.

Since servers are typically on faster connections than your home internet, speeds server to server are quite fast (I’ve got up to 3mbytes/sec before). Now that 800mb file only takes about 6 minutes (BIG DIFFERENCE).

Page 4: File Transfers over SSH

First I Open the terminal on the local machine

Page 5: File Transfers over SSH

Then I tell it to connect to my server,gtwy.net, via ssh, using the login ‘james’.

Page 6: File Transfers over SSH

Now I’m logged in. Anything I do is being doneas if I was physically at the computer.

Page 7: File Transfers over SSH
Page 8: File Transfers over SSH
Page 9: File Transfers over SSH
Page 10: File Transfers over SSH
Page 11: File Transfers over SSH
Page 12: File Transfers over SSH

Next I will run a texted basedweb browser on gtwy.net so Ican connect to apple.com anddownload the 800mb installerfor xcode.

Not only will this be muchquicker, but my IP address andidentity will be hidden from theApple server.

Page 13: File Transfers over SSH
Page 14: File Transfers over SSH
Page 15: File Transfers over SSH

Next I will demonstrate how to connect to oneserver and move files to another using SFTP(Secure File Transfer Protocol).

This is different than the last example becausewe are sending instead of receiving.

Page 16: File Transfers over SSH
Page 17: File Transfers over SSH
Page 18: File Transfers over SSH

Notice how these servers are alsoaccessible via the web browser.Not all servers run a webserverdaemon, but mine have apacheinstalled to make it easier toaccess files and data in locationsthat I can’t connect in via ssh.

Page 19: File Transfers over SSH

Next I will use a program named “Cyberduck”to sftp gtwy.net from my local computer. Thisis a direct upload from me to the server, andit is done with a GUI application rather thanthrough the command line.

Page 20: File Transfers over SSH
Page 21: File Transfers over SSH
Page 22: File Transfers over SSH
Page 23: File Transfers over SSH

It’s hard to mask your identity over theinternet, but by connecting through ashell you are able to hide.Any program you run on your server,may it be an IRC client, a BitTorrentdownload, or an attack on a website,It will only trace backto the server. Donot use this to try to get away withsomething illegal, because the FBI willget search warrants, take your server,and use the log files to find you.

In this example I log into IRC over theserver and do a “/whois” of my login.It says my IP address, but the addressit thinks I am belongs to gtwy.net, notmy laptop.

Page 24: File Transfers over SSH
Page 25: File Transfers over SSH
Page 26: File Transfers over SSH