Skip to content

Commit b3a91f4

Browse files
committed
General cleanup
1 parent b6799ba commit b3a91f4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.gitmodules

Whitespace-only changes.

main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ package main
2727

2828
import (
2929
"fmt"
30-
"golang.org/x/crypto/ssh"
3130
"io"
3231
"log"
3332
"os"
@@ -39,6 +38,8 @@ import (
3938
"strings"
4039
"syscall"
4140
"time"
41+
42+
"golang.org/x/crypto/ssh"
4243
)
4344

4445
const VERSION = "1.0"

sshhelper.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,17 @@ import (
3131
"crypto/x509"
3232
"encoding/pem"
3333
"fmt"
34-
"golang.org/x/crypto/ssh"
35-
"golang.org/x/crypto/ssh/agent"
36-
"golang.org/x/crypto/ssh/terminal"
3734
"io/ioutil"
3835
"log"
3936
"net"
4037
"os"
4138
"os/signal"
4239
"strings"
4340
"syscall"
41+
42+
"golang.org/x/crypto/ssh"
43+
"golang.org/x/crypto/ssh/agent"
44+
"golang.org/x/crypto/ssh/terminal"
4445
)
4546

4647
func getpass(prompt string) (pass string, err error) {
@@ -179,7 +180,7 @@ func tryAgentConnect(user, addr string) (client *ssh.Client) {
179180
if auth, ok := getAgentAuth(); ok {
180181
config := &ssh.ClientConfig{
181182
User: user,
182-
Auth: []ssh.AuthMethod{ auth },
183+
Auth: []ssh.AuthMethod{auth},
183184
}
184185
client, _ = ssh.Dial("tcp", addr, config)
185186
}

0 commit comments

Comments
 (0)