General :: Transfer Files From Remote To Local Machine Using SSH?
Jun 28, 2011
I have a Ubuntu server hosted on Amazon EC2. I need to create an automated backup scheme so I created another Ubuntu instance on my local network which is hosted in a virtual environment. I managed to transfer the necessary files between 2 machines on the same network using the rsync command:
How can I do the same thing but transferring files from my Amazon server to my local server? Is there a way I can achieve this with port forwarding, or by VPN, or anything else? It doesn't have to be rsync. If you know about a better method, kindly let me know.
I recently purchased a linux VPS from [URL] just to learn and play around with. I currently ssh into the machine via Putty from various Windows boxes. Is there anyway to throw some mp3s on the remote server and then have them play locally? Server is currently running Ubuntu Server 10.04.1.
I have a big iso image which is currently being downloaded by a torrent client with space-reservation turned on: that means, file size is not changing while some chunks in in (4 Mib) are constantly changing because of a download.
At 90% download I do the initial rsync to save time later:
$ rsync -Ph DVD.iso /media/another-hdd/ sending incremental file list DVD.iso
[Code]....
Then, when the file's fully downloaded, I rsync again:
total size is 2.60G speedup is 1.00
Speedup=1 says delta-transfer was not used, although 90% of the file has not changed, target dir is on another FS and copying takes several minutes. Why doen't it try to speedup the transfer?! How can I force rsync to use delta-transfer?
I had run one script in unix machine and want to copy the results to a windows machineBoth the machines are on different networksIn linux machine trying to do the ftp to the windows machine its giving connection refused. How to chech whether ftp is running on that linux machine or not?Also tried scp and ssh , both are failing
I have a problem while copying files from a remote computer to my local one using the scp command. I am sure that I am using it correctly, please check it below: --- blah@blah.com:~/g4work> scp blah2@blah2.com:IndirectMethod_Spher...s/H_1.mac.root . --- What I get in return (instead of the statement saying 100% of file copied) is: --- On this machine the G4SYSTEM=Linux-g++ ---
The interesting point is that the above returned statement is one of the Environment variables set on both the machines that are necessary to work with a toolkit called Geant4. Here is what I get when I type 'printenv | grep G4' just to show you (note the statement in bold): --- G4LEVELGAMMADATA=/home/blah/geant4/geant4.9.3.p02/data/PhotonEvaporation2.0 G4INSTALL=/home/blah/geant4/geant4.9.3.p02 G4LEDATA=/home/blah/geant4/geant4.9.3.p02/data/G4EMLOW6.9 G4NEUTRONHPDATA=/home/blah/geant4/geant4.9.3.p02/data/G4NDL3.13 G4VIS_BUILD_OPENGLX_DRIVER=1 G4RADIOACTIVEDATA=/home/blah/geant4/geant4.9.3.p02/data/RadioactiveDecay3.2 G4ABLADATA=/home/blah/geant4/geant4.9.3.p02/data/G4ABLA3.0 G4LIB=/home/blah/geant4/geant4.9.3.p02/lib G4VIS_BUILD_RAYTRACERX_DRIVER=1 G4LIB_BUILD_SHARED=1 G4VIS_USE_OPENGLX=1 G4UI_USE_TCSH=1 G4VIS_USE_RAYTRACERX=1 G4REALSURFACEDATA=/home/blah/geant4/geant4.9.3.p02/data/RealSurface1.0 G4SYSTEM=Linux-g++ G4WORKDIR=/home/blah/g4work --- The other thing that I would like to mention is that these Geant4 Env. Variables are loaded each time a new (bash) shell is started as a result of the bash login script.
i have a problem........ How to redirect local http port to remote ip ddress(192.168.10.64) using iptables..my destro is Centos 5.3 my rule is this iptables -t nat -A PREROUTING -s 0/0 -d <my local ip> -p tcp --dport 80 -j DNAT --to-destination 192.168.10.64
For the life of me I can not figure out what I am doing wrong with scp to copy a directory and its contents from a remote machine to my local host. I have no issues with getting a single file but would like to just save time and get the whole folder in one command.
Here is what I have tried:
scp user AT remoteMachine:/home/username/folderIwant user AT localMachine:/folderIwant this gives me a permission denied error and try again and received disconnect from localHost to many authentication failures
scp user AT remoteMachine:home/username/folderIwant . says can not find file or folder
I am sure this is something easy that I cant remember, and searches gives me local to remote not remote to local and trying to make the local to remote suggestions I read to work remote to local have not worked.
Should I be able to transfer files between computers wired to the same router? Is the router bridging function used to transfer data between wired computers? I just got DSL and I'm new to networking. I have openSuse 11.4 on two computers plugged into a Belkin router. The internet connection to my ISP works from either computer. If I ping $HOSTNAME from either computer, the hostnames are different, but the IP address is the same which is that of my ISP. I only have the one router, but it has a bridging option. I don't know if it can do both bridging and routing simultaneously.
I have accounts on two machine: H1 and H2. I created ssh keys on H1 and installed it on S1. I can now ssh to S1 from H1. I want to do the same from H2. How do I install the ssh keys generated on H1 on H2?
One of Konqueror's unique features is that i can name a local process as the action in a form. When i submit that form, the local process is executed. Very helpful for certain offline tasks. What would make it even better is if i could find a way to pass some data to that local process from the html page. This could be the content of a hidden input item, etc. Alternatively, if there is a way for Konqueror to create or update a local file with data from the html page, that would acheive the same end.
Have a machine running Fedora Core 4 that has been used as a mail/web server. Now want to transfer drive to a newer machine. Can this be done without having to re-install fc4 and what becomes of current network settings
I'm doing some commands on a remote server (using ssh to log on to the remote server, did a ssh key swap), how do i redirect the output of a command back to the local server ?the person who helps me out is my HERO i'm really stuck on this and it would bring me a lot further if i get this to work
I know I can ssh login without password from a local to a remote. My question is how I can ssh without password from the remote to another remote. Say, I have three machines: A, B, C where A is the local machine. I use the same private/public key pair for all the login. What I can do are:
1. ssh from A to B.
2. ssh from A to C.
3. If I am sitting in the computer B (or B is local), then I can ssh from B to C.
What I am not able to do is:
After I ssh from A to B, I cannot ssh from the B to C. When I try to ssh from B to C, it asks me a passphrase.
I'd like to have a copy of a web site on my local drive. Then when I make changes to that copy, have those changes automatically updated on the site's server. Ideally I'd like to tell it to only do this for certain file types. Does anybody know of a way to do this with Linux?
I have a server I can ssh into, and I am also running Ubuntu. How do I edit this remote file using any program I have installed on my local Ubuntu, without copying it to local, editing it, and copying it back?
I would like to know how can I have remote desktop to a Linux Box without any disturbance of local user or others who logged in like me .I mean exactly like remote desktop in windows 2003 or 2008 which every users who logged in remotely has it's own desktop without any disturbance of others. and is this possible to do it from fedora to ubuntu and vice versa .
The situation is say all I have is a windows machine and I remotely connected via ssh to a Linux machine. Is there a way I can mount my local CD-rom on the remote Linux machine?