0

Symptoms: 16.04 refuses connection from Putty and replies to ping requests

Remedies on askubuntu suggest installing:

sudo apt-get install openssh-server

Before I do this, how can I verify that an install is genuinely needed: I'd like to verify that it is not a configuration obstacle or maybe a service needs to be turned on? Is there a list of checks that can be performed?

Update: Does this response indicate that the install is required?

user@host:~$ apt-cache policy openssh-server
openssh-server:
  Installed: (none)

Diagnostic credit and thanks to muru:

user@host:~$ service ssh status
● ssh.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
user@host:~$ service ssh start
Failed to start ssh.service: Unit ssh.service not found.
user@host:~$ apt-cache policy openssh-server
openssh-server:
  Installed: (none)
  Candidate: 1:7.2p2-4ubuntu2.1
  Version table:
     1:7.2p2-4ubuntu2.1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
     1:7.2p2-4 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
gatorback
  • 5,785
  • 9
  • 40
  • 65
  • 3
    service ssh status, apt-cache policy openssh-server, service ssh start – muru Nov 01 '16 at 15:27
  • The information from your updated question states it clearly in English that you do not have installed ssh daemon (server). @muru should write the answer as the credits belong to him/her :). – Rostislav Kandilarov Nov 01 '16 at 17:33
  • I thought as much: thanks for confirming. @muru: I would be happy to confer credit where credit is due – gatorback Nov 01 '16 at 17:42

1 Answers1

2

If you want to connect using SSH, you need to have SSH running on the target system. service ssh status shows that it doesn't even know of such a service and apt-cache policy openssh-server shows that it hasn't been installed at all (Installed: (none)). So, yes, you have to install it.

muru
  • 197,895
  • 55
  • 485
  • 740