summaryrefslogtreecommitdiff
path: root/internal/clients/remote
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2020-02-11 13:10:26 +0000
committerPaul Bütow <pbuetow@mimecast.com>2020-02-11 13:10:26 +0000
commitecf7c86bc2f64068e6256ac1b9738c712a9858e9 (patch)
tree1ed536ad81a3c87c21eebd1438792ee91ce969e0 /internal/clients/remote
parent410ca88465f065f244f88c1d4089cb0fa4a45799 (diff)
more on scheduled jobs and ssh callbacks
Diffstat (limited to 'internal/clients/remote')
-rw-r--r--internal/clients/remote/connection.go4
1 files changed, 2 insertions, 2 deletions
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{