Ubuntu comes with openssh-client, so you can
?
To connect to Linux remotely
But to be connected via SSH, the Ubuntu system needs to be openssh-server and can be
?
To see if the sshd is not shown, it is not installed Openssh-server
Available through
?
1 |
sudo apt-get install openssh-server |
To install Openssh-server, if successful, the installation will succeed if it encounters
?
123456789101112 |
$ sudo Apt-get install openssh-server reading the package list ... Complete the reading status information ... Finish There are some packages that cannot be installed. If you are using the unstable release, this may be openssh-server: dependency: openssh-client (= 1:6.6P1-2UBUNTU1) e: cannot fix the error because you require certain packages to remain current, that is, they destroy the dependencies between packages. |
This is because, Openssh-server is dependent on Openssh-clien, that Ubuntu did not bring openssh-client? The original Openssh-clien is the same as the version that is dependent on the Openssh-server to be installed.
?
So to install the corresponding version of the Openssh-clien, to cover off the Ubuntu comes with
?
1234567891011121314151617181920 |
$
sudo apt-get
install openssh-client=1:6.6p1-2ubuntu1
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
建议安装的软件包:
libpam-
ssh keychain monkeysphere
下列软件包将被【降级】:
openssh-client
升级了 0 个软件包,新安装了 0 个软件包,降级了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 566 kB 的软件包。
解压缩后会消耗掉 0 B 的额外空间。
您希望继续执行吗? [Y
/n
] y
获取:1 http:
//cn
.archive.ubuntu.com
/ubuntu/ trusty
/main openssh-client amd64 1:6.6p1-2ubuntu1 [566 kB]
下载 566 kB,耗时 2秒 (212 kB
/s
)
dpkg:警告:downgrading openssh-client from 1:6.6p1-2ubuntu2 to 1:6.6p1-2ubuntu1
(正在读取数据库 ... 系统当前共安装有 200015 个文件和目录。)
Preparing to unpack ...
/openssh-client_1
%3a6.6p1-2ubuntu1_amd64.deb ...
Unpacking openssh-client (1:6.6p1-2ubuntu1) over (1:6.6p1-2ubuntu2) ...
Processing triggers
for man
-db (2.6.7.1-1) ...
正在设置 openssh-client (1:6.6p1-2ubuntu1) ...
|
Can be seen, prompted the system openssh-client is degraded, so that the installation of Openssh-server can be successful!
Ubuntu Install Openssh-server report relies on the wrong resolution process