rsync icon indicating copy to clipboard operation
rsync copied to clipboard

actually store known hosts

Open maxheld83 opened this issue 6 years ago • 1 comments

the public key for a known host is currently saved, but is not actually used.

The Rsync call still needs ssh -o StrictHostKeyChecking=no, otherwise we get a host key verification error.

maxheld83 avatar Jan 28 '19 09:01 maxheld83

I had this same problem in a similar implementation.

In our case, the home directory was /github/home/, but rsync/scp/ssh itself were using /root/.ssh/ !

So if you haven't tried it yet, I'd recommend trying -o UserKnownHostsFile= $SSH_PATH/known_hosts for the rsync SSH arg, or using SSH_PATH="/root/.ssh"

lgarron avatar Apr 10 '19 04:04 lgarron