Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default ssh method from go library to external command #416

Merged
merged 2 commits into from
Apr 6, 2017

Conversation

kotakanbe
Copy link
Member

What did you implement:

Closes #415

How did you implement it:

Remove ssh-external option.
Add ssh-native-insecure option.

How can we verify it:

Run Vuls with/without this option.

Todos:

You don't have to satisfy all of the following.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: YES

@kotakanbe kotakanbe requested a review from knqyf263 April 4, 2017 15:09
config/config.go Outdated
if runtime.GOOS == "windows" && c.SSHExternal {
errs = append(errs, fmt.Errorf("-ssh-external cannot be used on windows"))
if runtime.GOOS == "windows" && !c.SSHNative {
errs = append(errs, fmt.Errorf("-ssh-native is needed on windows"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-ssh-native → -ssh-native-insecure

README.md Outdated
This is useful If you want to use ProxyCommand or cipher algorithm of SSH that is not supported by native go implementation.
Don't forget to add below line to /etc/sudoers on the target servers. (username: vuls)
```
Defaults:vuls !requiretty
```

To use native Go implementation from crypto/ssh, specify this option.
This is useful in situations where you may not have access to traditional UNIX tools.
But It is important to note that this mode does not check the host key.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It → it

@knqyf263 knqyf263 merged commit 05884c2 into master Apr 6, 2017
@knqyf263 knqyf263 deleted the ssh-native-insecure branch April 6, 2017 03:32
@kotakanbe kotakanbe modified the milestone: v0.4.0 Apr 6, 2017
lapthorn pushed a commit to lapthorn/vuls that referenced this pull request May 11, 2017
…-architect#416)

* Change default ssh method from go library to external command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants