diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-06-06 05:25:23 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-06-06 05:25:42 +0700 |
| commit | b1133f25df3ec38b503e1ea6129ea6b3397968bb (patch) | |
| tree | 53a2c6755c6a2e0d9ed13b84603e5b8bcd2e3ee0 /lib/ssh/client.go | |
| parent | 8661178b08ce640d7c24aec8465802e4d5160e2a (diff) | |
| download | pakakeh.go-b1133f25df3ec38b503e1ea6129ea6b3397968bb.tar.xz | |
all: use default linter options
Diffstat (limited to 'lib/ssh/client.go')
| -rw-r--r-- | lib/ssh/client.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ssh/client.go b/lib/ssh/client.go index 0e360e62..d3ae9af6 100644 --- a/lib/ssh/client.go +++ b/lib/ssh/client.go @@ -36,7 +36,7 @@ func NewClient(cfg *ConfigSection) (cl *Client, err error) { Auth: []ssh.AuthMethod{ ssh.PublicKeys(cfg.signers...), }, - HostKeyCallback: ssh.InsecureIgnoreHostKey(), //nolint:gosec + HostKeyCallback: ssh.InsecureIgnoreHostKey(), } cl = &Client{ @@ -101,7 +101,6 @@ func (cl *Client) Get(remote, local string) (err error) { remote = fmt.Sprintf("%s@%s:%s", cl.cfg.User, cl.cfg.Hostname, remote) - //nolint: gosec cmd := exec.Command("scp", "-r", "-i", cl.cfg.privateKeyFile, "-P", cl.cfg.stringPort, remote, local) @@ -135,7 +134,6 @@ func (cl *Client) Put(local, remote string) (err error) { remote = fmt.Sprintf("%s@%s:%s", cl.cfg.User, cl.cfg.Hostname, remote) - //nolint: gosec cmd := exec.Command("scp", "-r", "-i", cl.cfg.privateKeyFile, "-P", cl.cfg.stringPort, local, remote) |
