Find the answer to your Linux question:
Results 1 to 3 of 3
Hello My name is Ashis. I want to cp data-folder from my pc to remote location using command. When I start the process it ask password..... So, my question is ...
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    7

    Cool CP file from remote PC

    Hello

    My name is Ashis.

    I want to cp data-folder from my pc to remote location using command.

    When I start the process it ask password.....

    So, my question is can i put 2 or 3 folder (from different directory) together to copy without entering password again & again?

    Please advice

    Thanks

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    It depends on infratructure at hand.

    1) If the machines within a trusted network, then setup nfs or cifs.
    The exports/shares provided by these services can be mounted.

    2) The machines are in different networks, connected over untrusted nets (ie: internet)
    Then ssh comes to mind.
    Setup key authentication (easy to google).
    Then either use scp or better rsync over ssh to copy your files.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Aug 2011
    Posts
    35
    Use ssh for that it's secure. The command is scp what you have to do is :
    $ scp /path/to/myfile user@remotehost:

    That'll transfer the file "myfile" to the home folder of user that is on remotehost.

    the remotehost should have ssh server installed for that if it's a debian based distribution you have to run "apt-get install ssh" on the remote host.

    That's it

Posting Permissions

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