Answers in-line... You'll be an expert on SSH key-based auth before this is all done.
The file copies after error messages.
In Terminal, I enter the scp command but it seems my
"path to id_file" is not valid. The following error
messages within Terminal occur:
Warning: Identity file
/usr/bin/Users/kengoff/.ssh/id_dsa does not exist
If you're initiating this on a mac (which I assume you are) that path is incorrect. It should be /Users/kengoff/.ssh/id_dsa , the /usr/bin is extraneous, take it out.
or another variation-
Warning: Identity file /usr/bin/kengoff/.ssh/id_dsa
does not exist
Then the next message:
Address xxx.xxx.xxx.xx maps to MyWebDomain.com, but
this does not map back to the address - POSSIBLE
BREAKIN ATTEMPT!
This is telling you that your ISP does not or has not configured their DNS with reverse lookups. This is sending off a warning on your version of ssh. Also, if the host-key of the remote host ever changes, you will also get a warning. You will have to open you .ssh/known_hosts and delete that line.
In terms of that warning, if the copy is working, you can ignore it.
But then the file does indeed copy to the intended
directory. The percent of file transfer is shown in
Terminal and I can view the file within an FTP
application. I can also delete it from that FTP
application.
When I perform a Find ".ssh" within the my system's
Finder, the "id_dsa" file does indeed exist at
kengoff/.ssh/id_dsa. The companion, "id_dsa.pub" was
what I used to create the "authorized_keys" file that
was placed on the server's ".ssh" directory.
Can you see any problem with the following?
scp -r -p -i /usr/bin/Users/kengoff/.ssh/id_dsa
/Applications\ \(Mac\ OS\ 9\)/Products.sql
accountname@xxx.xxx.xxx.xx
:/var/www/Products.sql
QuickSilver Dual 1GHz Mac
OS X (10.3.9)
QuickSilver Dual 1GHz Mac OS X
(10.3.9)
Yep, just delete the /usr/bin and make it like so:
scp -r -p -i /Users/kengoff/.ssh/id_dsa ..... and so forth.
I'm particularly careful about including the "-i /path/to/.ssh/" because sometimes in cron jobs your users path is not picked up, or you might decided to have multiple keys for different hosts. In your case, you will notice it's not necessary because SSH is correctly picking your key. However, I recommend you keep it in there.
nice work overal!
MacBook Pro 2.0 Mac OS X (10.4.5) G5 1.6, TiBook 800, Pismo 447