I have ssh and openconnect installed but when I proceed to start or stop the ssh service, I get the following error:
Failed to start ssh.service: Unit ssh.service not found.
Also, when I try sudo apt-get install ssh
I get the following:
sudo apt-get install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh-import-id
Suggested packages:
ssh-askpass rssh molly-guard monkeysphere
The following NEW packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh ssh-import-id
0 upgraded, 5 newly installed, 0 to remove and 193 not upgraded.
Need to get 640 kB of archives.
After this operation, 5.237 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Which I find confusing. If I do which ssh
, I get:
/usr/bin/ssh
How can the binary be there if apt-get thinks the package is not installed?
Also, when calling ssh <valid-IP-address>
, I get the following error:
ssh: connect to host port 22: No route to host
But if I use openconnect and connect to a VPN, ssh work without problems.
What am I missing? I'm running Ubuntu 16.04.