From ecf7c86bc2f64068e6256ac1b9738c712a9858e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Tue, 11 Feb 2020 13:10:26 +0000 Subject: more on scheduled jobs and ssh callbacks --- internal/clients/remote/connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/clients/remote') diff --git a/internal/clients/remote/connection.go b/internal/clients/remote/connection.go index 71639b1..f95c6a6 100644 --- a/internal/clients/remote/connection.go +++ b/internal/clients/remote/connection.go @@ -33,11 +33,11 @@ type Connection struct { // Is it a persistent connection or a one-off? isOneOff bool // To deal with SSH server host keys - hostKeyCallback *client.HostKeyCallback + hostKeyCallback client.HostKeyCallback } // NewConnection returns a new connection. -func NewConnection(server string, userName string, authMethods []ssh.AuthMethod, hostKeyCallback *client.HostKeyCallback) *Connection { +func NewConnection(server string, userName string, authMethods []ssh.AuthMethod, hostKeyCallback client.HostKeyCallback) *Connection { logger.Debug(server, "Creating new connection") c := Connection{ -- cgit v1.2.3