Using terminal to copy folders between computers

Discussion in 'Mac OS X Server, Xserve, and Networking' started by TuffLuffJimmy, Aug 8, 2008.

  1. macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
    #1
    I'm pretty new to the terminal, but I know the basic commands of it. I can't figure out how to ssh into my home computer and copy directories from it to the computer I'm ssh'ing from. I know how to move folders on the computer I'm remote accessing to, and my local computer, but I can't figure out how to do it between computers.

    I'd rather not install any apps on the computers, such as cyberduck or putty as these machines have pretty specific functions and I don't want to have to deal with any more software than I need to.

    Any help is greatly appreciated.
     
  2. thread starter macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
    #2
    Come on guys, this has to be a pretty simple command, or setup.
     
  3. macrumors regular

    Joined:
    Jul 29, 2008
    Location:
    The Mitten State
    #3
    scp

    So for example, scp File.txt username@server:~ will copy the File.txt to usernames home directory on server.

    To do a folder you would use the -r tag. So scp -r Directory username@server:~ will copy the directory over.

    man scp for more info.
     
  4. thread starter macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
    #4
    Thank you so much. Do you know of a site where I can find more information ssh commands?
     
  5. macrumors regular

    Joined:
    Jul 29, 2008
    Location:
    The Mitten State
    #5
    Well, scp isn't really a ssh command. It's a completely different program that uses ssh.

    They really are two completely different things.
     
  6. thread starter macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
    #6
    When I use an app like cyberduck (using ssh) what command is it using to copy/move files? Or do is my understanding of the program a little backward?
     
  7. macrumors regular

    Joined:
    Jul 29, 2008
    Location:
    The Mitten State
    #7
    I'm not to familiar with cyberduck, however if it's sending and receiving files via ssh, it's probably using scp to accomplish it.
     
  8. thread starter macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
  9. macrumors 68000

    Joined:
    Feb 23, 2006
    #9

    Code:
    man ssh
    
     
  10. macrumors 603

    notjustjay

    Joined:
    Sep 19, 2003
    Location:
    Canada, eh?
    #10
    I thought CyberDuck was an FTP client.

    And, all due respect, programs like FTP, ssh, scp are common (and generic) enough that a simple Google search would probably have answered your question much quicker than waiting for us on the forums... :)
     
  11. thread starter macrumors G3

    TuffLuffJimmy

    Joined:
    Apr 6, 2007
    Location:
    Portland, OR
    #11
    It can do SSH (a little google search would have revealed that) :rolleyes:
     
  12. macrumors 603

    notjustjay

    Joined:
    Sep 19, 2003
    Location:
    Canada, eh?
    #12
    Nice. ;)
     

Share This Page