Hi all,<\/p>\n
I have a weird problem. I have recently deployed several CentOS 7 VMs that fail to inventory. Each machine is running sshd (forced protocol 2 from sshd_config) and snmpd. I can ping it, ssh (via putty) to it and run nslookup on it from the Windows server running SW. I enter its IP to scan, it identifies the machine name, but fails to inventory anything about the device.<\/p>\n
The device is registered as unknown, with “SSH computer with error”. It does pick up the serial number and MAC address. When I disable SSH or force scan with SNMP, it works, and picks up configuration and software inventory.<\/p>\n
I get to Device troubleshooting, enter the SSH credentials directly, and get the following error: \" Test failed with unknown error (NotImplementedError). Please visit the Spiceworks Community Support forums for help.\" The troubleshooter passes all tests (nmap runs, port 22 is open, pings return, nslookup returns, traceroute returns - no problem).<\/p>\n
I have the log files, but I will be honest, it doesn’t say very much. I have also run sshd manually with debugging on - it sees the connection and then immediate disconnection.<\/p>\n
I am at a loss. Can anyone offer any help, or where I should look next?<\/p>","upvoteCount":3,"answerCount":34,"datePublished":"2019-05-28T18:04:00.000Z","author":{"@type":"Person","name":"it61025","url":"https://community.spiceworks.com/u/it61025"},"suggestedAnswer":[{"@type":"Answer","text":"
Hi all,<\/p>\n
I have a weird problem. I have recently deployed several CentOS 7 VMs that fail to inventory. Each machine is running sshd (forced protocol 2 from sshd_config) and snmpd. I can ping it, ssh (via putty) to it and run nslookup on it from the Windows server running SW. I enter its IP to scan, it identifies the machine name, but fails to inventory anything about the device.<\/p>\n
The device is registered as unknown, with “SSH computer with error”. It does pick up the serial number and MAC address. When I disable SSH or force scan with SNMP, it works, and picks up configuration and software inventory.<\/p>\n
I get to Device troubleshooting, enter the SSH credentials directly, and get the following error: \" Test failed with unknown error (NotImplementedError). Please visit the Spiceworks Community Support forums for help.\" The troubleshooter passes all tests (nmap runs, port 22 is open, pings return, nslookup returns, traceroute returns - no problem).<\/p>\n
I have the log files, but I will be honest, it doesn’t say very much. I have also run sshd manually with debugging on - it sees the connection and then immediate disconnection.<\/p>\n
I am at a loss. Can anyone offer any help, or where I should look next?<\/p>","upvoteCount":3,"datePublished":"2019-05-28T18:04:01.000Z","url":"https://community.spiceworks.com/t/ssh-scanning-fails-on-centos-7-vm/713885/1","author":{"@type":"Person","name":"it61025","url":"https://community.spiceworks.com/u/it61025"}},{"@type":"Answer","text":"
I dont believe Spiceworks supports SSH2 only SSH protocol<\/p>\n
If you disable forced 2, does it work?<\/p>","upvoteCount":0,"datePublished":"2019-05-28T18:07:07.000Z","url":"https://community.spiceworks.com/t/ssh-scanning-fails-on-centos-7-vm/713885/2","author":{"@type":"Person","name":"Rod-IT","url":"https://community.spiceworks.com/u/Rod-IT"}},{"@type":"Answer","text":"
Unfortunately no - same issue.<\/p>","upvoteCount":0,"datePublished":"2019-05-28T18:13:06.000Z","url":"https://community.spiceworks.com/t/ssh-scanning-fails-on-centos-7-vm/713885/3","author":{"@type":"Person","name":"it61025","url":"https://community.spiceworks.com/u/it61025"}},{"@type":"Answer","text":"
Do you have more than one SSH/rot password stored?<\/p>","upvoteCount":0,"datePublished":"2019-05-28T18:33:10.000Z","url":"https://community.spiceworks.com/t/ssh-scanning-fails-on-centos-7-vm/713885/4","author":{"@type":"Person","name":"Rod-IT","url":"https://community.spiceworks.com/u/Rod-IT"}},{"@type":"Answer","text":"
I do - I have 5 SSH passwords stored for different machines. The ‘root’ password for several other CentOS 7 VMs work; however, for the 12 or so new ones deployed over the last week, it doesn’t. The username and password are valid, and I can ssh manually to all of them.<\/p>\n
Trying now with a different SSH account with root permissions.<\/p>","upvoteCount":0,"datePublished":"2019-05-28T18:40:43.000Z","url":"https://community.spiceworks.com/t/ssh-scanning-fails-on-centos-7-vm/713885/5","author":{"@type":"Person","name":"it61025","url":"https://community.spiceworks.com/u/it61025"}},{"@type":"Answer","text":"
Hi again,<\/p>\n
FYI, this is the latest log snippet from the last attempt (note: at least two of the ssh logins attempted are valid, yet neither seem to connect…).<\/p>\n
It also has a section where it receives SNMP data, but never adds it to the SW record:<\/p>\n
[REMOVED - DM me if you need to see the log output]<\/p>","upvoteCount":0,"datePublished":"2019-05-28T18:50:42.000Z","url":"https://community.spiceworks.com/t/ssh-scanning-fails-on-centos-7-vm/713885/6","author":{"@type":"Person","name":"it61025","url":"https://community.spiceworks.com/u/it61025"}},{"@type":"Answer","text":"
I would edit your post and remove the log, you’ve opted to secure SSH2 but posted IPs and details publically, if it helps I have a copy of this to look at, but I wouldn’t leave it on here for everyone, unless you obfuscate it<\/p>","upvoteCount":1,"datePublished":"2019-05-28T19:06:33.000Z","url":"https://community.spiceworks.com/t/ssh-scanning-fails-on-centos-7-vm/713885/7","author":{"@type":"Person","name":"Rod-IT","url":"https://community.spiceworks.com/u/Rod-IT"}},{"@type":"Answer","text":"
Thanks Rod, I took your advice and removed the raw output.<\/p>\n
I guess I was over-anxious to get this solved. <\/p>","upvoteCount":0,"datePublished":"2019-05-28T19:09:58.000Z","url":"https://community.spiceworks.com/t/ssh-scanning-fails-on-centos-7-vm/713885/8","author":{"@type":"Person","name":"it61025","url":"https://community.spiceworks.com/u/it61025"}},{"@type":"Answer","text":"
Why do you have so many SSH accounts, please show me a screenshot of how you have these setup.<\/p>\n
vsphere also doesn’t use SSH, there is a specific ESXi option, but this only works for ESXi 6.0 or lower, anything about 6.5 cannot be scanned and having SSH open is a bad idea for ESXi unless you are regularly doing maintenance tasks<\/p>","upvoteCount":0,"datePublished":"2019-05-28T19:12:32.000Z","url":"https://community.spiceworks.com/t/ssh-scanning-fails-on-centos-7-vm/713885/9","author":{"@type":"Person","name":"Rod-IT","url":"https://community.spiceworks.com/u/Rod-IT"}},{"@type":"Answer","text":"
Hi Rod,<\/p>\n
I have several hundred devices that I monitor - Windows, Linux, MacOS, phones, switches, several firewalls, 4 ESX hosts + vsphere, multiple web servers …<\/p>\n
The ESX hosts are inventoried and registered - no problem. Most Linux machines have one login for spiceworks - the others are for one-off installations (development server with unique root login, our Netapp has its own login, and several Macs have an ‘admin’ account rather than ‘root’.<\/p>\n
I took over an existing system and I have been cleaning it up/normalizing it as I go, but it is a work-in-progress.<\/p>\n
Your point on SSH to ESX hosts is noted.<\/p>\n
I have a screenshot as requested:<\/p>\n