Bug #180 save config using scp fails.

Please review the following patch.

I think it is better solution, (work properly). but I don't like execute curl twice part. 
Please advice more better solution. how to check known_keys ?

## Problem

It does not work properly the following  commands.
* mkdir "~/.ssh/";  ~ extract empty
* curl -# -T file scp://user@ip.ad.re.ss" need -u option