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 ...
- 08-06-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 7
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
- 08-06-2011 #2
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.
- 08-07-2011 #3Just 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


Reply With Quote
