Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, How can I transfer files from/to a host computer connected using ssh? Thank you....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie x1a4's Avatar
    Join Date
    Dec 2006
    Posts
    123

    SSH: transfer files from/to host to/from local system


    Hi,

    How can I transfer files from/to a host computer connected using ssh? Thank you.
    Linux user 439038 | Ubuntu user 20892

  2. #2
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    The command you are looking for is scp. It functions much like ssh and cp.

  3. #3
    Linux Newbie x1a4's Avatar
    Join Date
    Dec 2006
    Posts
    123
    Thank you. Here's how I've done it.

    % scp user@host:/home/user/file ./download

    to download, and to upload

    % scp ./upload/file user@host:/home/user/upload
    Linux user 439038 | Ubuntu user 20892

  4. #4
    Just Joined!
    Join Date
    Sep 2007
    Location
    Lafayette, IN
    Posts
    83
    For a more interactive experience, you can use the sftp command (it is a subsystem of SSH). To reduce bandwidth and only copy files that have changed, see the rsync command.

Posting Permissions

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