From ac510d21ff8f3d90f82afed92a7c86647794812b Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Wed, 29 Aug 2018 10:48:32 +0900 Subject: [PATCH] fix(scan): fix err msg when unable to connect via SSH (#702) --- scan/debian.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan/debian.go b/scan/debian.go index d0ed2539..92d31761 100644 --- a/scan/debian.go +++ b/scan/debian.go @@ -62,7 +62,7 @@ func detectDebian(c config.ServerInfo) (itsMe bool, deb osTypeInterface, err err return false, deb, nil } if r.ExitStatus == 255 { - return false, deb, fmt.Errorf("Unable to connect via SSH. Check SSH settings. If you have never SSH to the host to be scanned, SSH to the host before scanning in order to add the HostKey. %s@%s port: %s\n%s", c.User, c.Host, c.Port, r) + return false, deb, fmt.Errorf("Unable to connect via SSH. Scan with -vvv option to print SSH debugging messages and check SSH settings. If you have never SSH to the host to be scanned, SSH to the host before scanning in order to add the HostKey. %s@%s port: %s\n%s", c.User, c.Host, c.Port, r) } util.Log.Debugf("Not Debian like Linux. %s", r) return false, deb, nil