Closed
Description
What did you do? (required. The issue will be closed when not provided.)
vuls configtest
vuls scan
What did you expect to happen?
works fine
What happened instead?
ERROR
- Current Output
$ vuls configtest
[Feb 14 14:16:34] INFO [localhost] vuls-v0.19.3-build-20220214_115853_0733561
[Feb 14 14:16:34] INFO [localhost] Validating config...
[Feb 14 14:16:34] INFO [localhost] Detecting Server/Container OS...
[Feb 14 14:16:34] INFO [localhost] Detecting OS of servers...
[Feb 14 14:16:35] ERROR [localhost] (1/150) Failed: example1, err: [Failed to print SSH configuration. err:
github.com/future-architect/vuls/scanner.validateSSHConfig
/home/vuls/go/src/github.com/future-architect/vuls/scanner/serverapi.go:368
- exit status 255]
[Feb 14 14:16:35] ERROR [localhost] (2/150) Failed: example2, err: [Failed to name resolution. Please check the HostName settings for SSH:
github.com/future-architect/vuls/scanner.validateSSHConfig
/home/vuls/go/src/github.com/future-architect/vuls/scanner/serverapi.go:385]
[Feb 14 14:16:35] ERROR [localhost] (3/150) Failed: example3, err: [Failed to name resolution. Please check the HostName settings for SSH:
github.com/future-architect/vuls/scanner.validateSSHConfig
/home/vuls/go/src/github.com/future-architect/vuls/scanner/serverapi.go:385]
: snip
Please re-run the command using -debug
and provide the output below.
Steps to reproduce the behaviour
Configuration (MUST fill this out):
- Go version (
go version
):
go version go1.16.3 linux/amd64
-
Go environment (
go env
): -
Vuls environment:
Hash : ____
To check the commit hash of HEAD
$ vuls -v
vuls-v0.19.3-build-20220214_115853_0733561
or
$ cd $GOPATH/src/github.com/future-architect/vuls
$ git rev-parse --short HEAD
0733561
- config.toml:
[default]
port = "22"
user = "vuls"
keyPath = "/home/vuls/.ssh/id_rsa"
sshConfigPath = "/home/vuls/.ssh/config"
[servers.example1]
host = "example1.example.jp"
[servers.example2]
host = "example2.example.jp"
[servers.example3]
host = "example3.example.jp"
- command: