I am on step 1.4 in Section 2 of the "Learning the Ropes ..." tutorial (Sandbox in Microsoft Azure). I am borrowing a friend's Mac to explore Hortonworks. His home (~) directory is mapped to /Users/MyFriend. When I try to scp a file from his Downloads folder (/Users/MyFriend/Downloads/Somefile.txt) to my Sandbox using the instructions in the step, scp assumes a different path.
scp -P 22 ~/Downloads/Somefile.txt MyName@localhost:/MyName
Console Response: Home/MyName/Downloads/Somefile.txt: No such file or directory
How do I align this?
I am flying a little blind here, but for the scp command
scp SourceFile user@host:directory/TargetFile
could you use the absolute path for SourceFile instead of relative to home?
(If you navigate to the location of SourceFile, the command pwd will tell you the absolute path)
OK I tried that, @gkeys but I'm not quite there yet ...
From the directory where Sourcefile exist, I type 'pwd' and get: /Users/MyFriend/Downloads/Somefile.txt
So I try: scp -P 22 /Users/MyFriend/Downloads/Somefile.txt MyName@localhost:/MyName
Console Response: /Users/MyFriend/Downloads/Somefile.txt: No such file or directory
When I run "ls -l" from the Sourcefile directory, I see:
-rw-r--r--@ 1 MyFriend staff 136572 Mar 16 2015 SomeFile.txt
Any other ideas anyone? Could this be a permissions issue?