Skip to content

Commit

Permalink
Typo fix and updated readme
Browse files Browse the repository at this point in the history
Updated readme to include chmod 600 on the authorized_keys file to force
the correct permissions.
  • Loading branch information
Euan committed Apr 11, 2016
1 parent 3e84623 commit b4d0aa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Create a keypair then append public key to authorized_keys
```bash
$ ssh-keygen -t rsa
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
$ chmod 600 ~/.ssh/authorized_keys
```

## Step3. Install requirements
Expand Down
4 changes: 2 additions & 2 deletions scan/sshutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func sshConnect(c conf.ServerInfo) (client *ssh.Client, err error) {

var auths = []ssh.AuthMethod{}
if auths, err = addKeyAuth(auths, c.KeyPath, c.KeyPassword); err != nil {
logrus.Fatalf("Faild to add keyAuth. err: %s", err)
logrus.Fatalf("Failed to add keyAuth. err: %s", err)
}

if c.Password != "" {
Expand All @@ -240,7 +240,7 @@ func sshConnect(c conf.ServerInfo) (client *ssh.Client, err error) {
// log.Debugf("config: %s", pp.Sprintf("%v", config))

notifyFunc := func(e error, t time.Duration) {
logrus.Warnf("Faild to ssh %s@%s:%s. err: %s, Retrying in %s...",
logrus.Warnf("Failed to ssh %s@%s:%s. err: %s, Retrying in %s...",
c.User, c.Host, c.Port, e, t)
logrus.Debugf("sshConInfo: %s", pp.Sprintf("%v", c))
}
Expand Down

0 comments on commit b4d0aa7

Please sign in to comment.