Linux command for copying a file from remote server location to our local machine

Nikumbh

Nikumbh

@nikumbh-lmTCgS Oct 23, 2024
scp -r testuser@10.0.5.215:/home/testuser/tmp/hello.txt /home/elcot/hello.txt
I've used the above command to copy the file located at the server:10.0.5.215, location: /tmp/hello.txt username: testuser to my local machine local-username: elcot....
Could anyone help me to get the file located remotely....

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • lovejeet

    lovejeet

    @lovejeet-etHdkD Aug 9, 2013

    can you post the error you are getting?? try using rsync cmd, which runs over ssh protocol and furthermore provides a lot of configurable parameters.
  • Nikumbh

    Nikumbh

    @nikumbh-lmTCgS Aug 9, 2013

    #-Link-Snipped-# : i was getting connection timed out msg.... i don't know why. 😔
  • lovejeet

    lovejeet

    @lovejeet-etHdkD Aug 9, 2013

    are u able to ping to the server??
  • Nayan Goenka

    Nayan Goenka

    @nayan-Dhpt4N Aug 10, 2013

    Just verify if you have healthy connection to the server. Apart from that if this is some kind of backup utility, I would suggest you to use rsync to take network backup for sharing files. It is secure as well