Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Moving Files between 2 remote servers (SCP?)

  1. #1
    Join Date
    Nov 2006
    Location
    Gloucester, ENGLAND
    Beans
    201

    Question Moving Files between 2 remote servers (SCP?)

    Hi guys,

    I have 2 remote servers sat locally on the same LAN as each other.

    Both boxes are headless, ssh only, and neither have ftp, www, nfs or samba.

    I need to move about 8Gb from one box onto the other, both can access each other via ssh, can i use scp to copy the files across?

    I need to ensure the data is transfered perectly with no errors, it doesn't matter how long it takes.

    Would any one know how to move this data?

    I simply need to move from /home/user on box1 to /home/user on box2.

    Cheers in advanmce
    Have a go at hacking with a Gnome version of BackTrack called GnackTrack.co.uk

  2. #2
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: Moving Files between 2 remote servers (SCP?)

    I would use rsync over ssh.

  3. #3
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: Moving Files between 2 remote servers (SCP?)

    You can open two windows in Konqueror or Nautilus, use sftp to connect to the two machines, then click-drag-drop files between them - super easy.

    Don't try that with *******...

  4. #4
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Moving Files between 2 remote servers (SCP?)

    Quote Originally Posted by hyper_ch View Post
    I would use rsync over ssh.
    Last time I checked, you can not rsync between 2 remote systems.

  5. #5
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: Moving Files between 2 remote servers (SCP?)

    sure you can... if you can't do it directly then you'll first build a ssh connection to one server and issue the command from there...

  6. #6
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Moving Files between 2 remote servers (SCP?)

    Quote Originally Posted by hyper_ch View Post
    sure you can... if you can't do it directly then you'll first build a ssh connection to one server and issue the command from there...
    ah, OK, didn't quite understood that that is what you meant.
    You'd have to do it that way; "rsync remote01:/path/ remote02:/path" wouldn't work.

  7. #7
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: Moving Files between 2 remote servers (SCP?)

    it would actually be great if you could directly do:

    rsync remote1:/org remote2:/dest

  8. #8
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Moving Files between 2 remote servers (SCP?)

    Quote Originally Posted by hyper_ch View Post
    it would actually be great if you could directly do:

    rsync remote1:/org remote2:/dest
    yeah.
    I think the problem is you'd need to authenticate from remote1 to remote2

    something like "ssh remote01 rsync /src remote2:/dest"
    might work if you've set up host-based or public key authentication

  9. #9
    Join Date
    Nov 2006
    Location
    UK
    Beans
    21
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Moving Files between 2 remote servers (SCP?)

    I see no reason why scp wouldn't work.

    scp -p user1@host1:/home/user1 user2@host2:/home/user2

    Or something similar anyway.

  10. #10
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Moving Files between 2 remote servers (SCP?)

    Quote Originally Posted by MartynA View Post
    I see no reason why scp wouldn't work.

    scp -p user1@host1:/home/user1 user2@host2:/home/user2

    Or something similar anyway.
    because host2 will request authentication from user1@host1 before creating a channel for scp, while scp is being run by user0@host0.

    try it.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •