Results 1 to 4 of 4

Thread: ssh into my accout elsewhere, copy files to it

  1. #1
    Join Date
    Mar 2009
    Beans
    75

    ssh into my accout elsewhere, copy files to it

    hey guys, so i have this text file that i wrote on my home computer that needs to be transferred to my account on a lab computer that i can ssh into. how do i copy this text file and put it in my account that i sshed into? thanks!

  2. #2
    Join Date
    May 2007
    Location
    Western New York
    Beans
    278
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: ssh into my accout elsewhere, copy files to it

    The easiest way is to use an SFTP client like FileZilla, but Nautilus can do it as well. Just click Places... Connect to Server... Change the service type to SSH, and enter your information.

    You can also do it all from the command line, but I'd imagine you'd find this easier...
    Ubuntu User #19733/Linux User #449481

  3. #3
    kjohri is offline Gee! These Aren't Roasted!
    Join Date
    Dec 2008
    Location
    Ghaziabad, India
    Beans
    133

    Re: ssh into my accout elsewhere, copy files to it

    You can use sftp ffrom command line,

    sftp user-name@host-name

    The remote machine will ask for password. Once you give password, a SFTP session will start. You can then use the the SFTP commands,

    put filename
    bye

  4. #4
    Join Date
    Feb 2007
    Beans
    4,045
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: ssh into my accout elsewhere, copy files to it

    You can also use the scp command, or even the ssh command.
    Code:
    scp localfile user@host:path   # If you omit path (i.e. user@host:) it will upload 
                                   # it to the homedir. Do not omit the colon.
    
    # Piping the file over
    ssh user@host "cat >filename" < localfile

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
  •