Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Thanks, but now what' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Thanks, but now what
Authored by: Anonymous on Apr 01, '01 04:37:42PM

Thanks for the tutorial. It has helped me out tremendously. A problem I'm having now is that when I try to scp a file I get this error message: warning: Cannot open source file <host:file>

Any ideas? Do I just not have permission to scp from this particular server?



[ Reply to This | # ]
Re:Thanks, but now what
Authored by: Anonymous on Apr 02, '01 05:09:17AM
I tried different combinations to try to reproduce your error (coming from a Linux machine trying to scp to/from a MacOSX machine), but the best I could come up with is a "No such file or directory" or a "permission denied".

So at most I can suggest two things.

1) try putting a "/" in front of "Users". I couldn't scp without it when I tried. An initial "/" in unix signifies to start from the root directory.
scp jack@192.168.0.2:/Users/jack/public/myfile.txt .

2) In the initial example above, make sure you include the final space and ".". This indicates to copy into the existing local directory.

3) If you can't retrieve a remote file, try transferring a local file to the remote MacOSX machine by using scp. just reverse the arguments after scp, i.e.:
scp myfile.txt jack@192.168.0.2:/Users/jack/public/

Hope this helps. Otherwise I can assure you that it does work, so just keep trying...

[ Reply to This | # ]