I want to customize the /root/.ssh/config file on my server to add my test server so that I can rsync data from the test box, using ssh, for backup. I want the job to be scheduled, so I need to enable ssh to bypass the password routine for this host.
I'm familiar with the custom templates features, but not PERL. I've created a custom template (30LocalHostsConfig) but when I expand it, it's not being added.
The template fragment is as follows:
{
Host bertie
Protocol 1
UserKnownHostsFile ~/.ssh/known_hosts.e-smith
StrictHostKeyChecking yes
BatchMode yes
}
I've also tried without the braces, but with the same results.
Can anyone clarify where I'm going wrong?
Thanks,
Des Dougan