Quote:
Originally Posted by j0sh-linux
So I had to correct the /etc/.ssh/config file which had the info about where the private key was, so earlier it was,
Code:
Host root
Hostname rsnap.local.josh.com
IdentityFile /root/cron/localhost-rsnapshot-key
but then I changed it to,
Code:
Host *.local.josh.com
User root
IdentityFile /root/cron/localhost-rsnapshot-key
|
So you didn’t use root as the target to the
ssh command before, because it should work too:
ssh root?
The string after host can be any arbitrary one, it’s just the one you have to use later on to access these defaults:
Code:
Host foobar
Hostname rsnap.local.josh.com
IdentityFile /root/cron/localhost-rsnapshot-key
and then use foobar as target hostname in the
ssh command. As the local executing user is already root, I think this line can be left out or is it a normal use (then you would need it).