我安装了 ssh 和 openconnect,但是当我继续启动或停止 ssh 服务时,我收到以下错误:
ssh.service 启动失败:未找到 Unit ssh.service。
另外,当我尝试时,sudo apt-get install ssh
我得到以下信息:
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 ssh
,我会得到:
/usr/bin/ssh
如果 apt-get 认为该软件包未安装,二进制文件如何存在?
此外,调用时ssh <valid-IP-address>
,我收到以下错误:
ssh:连接到主机端口 22:没有到主机的路由
但是如果我使用 openconnect 并连接到 VPN,ssh 就可以正常工作。
我错过了什么?我正在运行 Ubuntu 16.04。