cannot copy local files to remote computer thru ssh
Posted on 2013-01-18
I am getting trouble copying local files to remote files on a linux machine. I am using scp in ssh to copy files but local files doesnt seems found although they are there.
logged in by ssh
pwd : blahblah
I want to copy all htlocations.txt from my local machine to remote machine
scp htlocations.txt email@example.com:/export/home/user1
=== =========== ==================================================
But I keep getting the error that htlocations.txt is not found, I have tried by changing it to export/users/user1/htlocations.txt and also copied the htlocations.txt at export/users/user1 folder in my local mac
Even when I switch the source and target like copy remote files to local machine that doesnt work either, it keep saying that
scp firstname.lastname@example.org:/export/home/ysingh/*.txt Users/user1/Dev/
It keep complaining that Users/user1/Dev : No such file or directory
Could someone please help. I heard that scp is really easy to use, not sure why it is not working for me. I am accessting a remote VM thru my mac.