Ubuntu Installation Openssh-server

Source: Internet
Author: User

Ubuntu comes with openssh-client, so you can
SSH [email protected]

To connect to Linux remotely

But to be connected via SSH, the Ubuntu system needs to be openssh-server and can be

Ps-e | grep ssh
To see if the sshd is not shown, it is not installed Openssh-server

Available through

sudo apt-get install Openssh-server
To install Openssh-server, if successful, the installation will succeed if it encounters
$ sudo apt-get install openssh-server is reading the package list ... Completing the dependency tree that is analyzing the package is       reading state information ... Complete       Some packages that cannot be installed. If you are using the unstable release, this may be due to the system not being able to meet the status you requested. Some of the packages you need may not have been created or have been removed from the new to (Incoming) directory in this release. The following information may be helpful in resolving a problem: The following packages have an unsatisfied dependency: Openssh-server: Dependency: openssh-client (= 1:6.6p1-2ubuntu1) E: cannot fix the error because you require certain packages to remain current, Is that they disrupt 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.

1:6.6p1-2ubuntu1
So to install the corresponding version of the Openssh-clien, to cover off the Ubuntu comes with
$ sudo apt-get install OPENSSH-CLIENT=1:6.6P1-2UBUNTU1 is reading the package list ... Completing the dependency tree that is analyzing the package is       reading state information ... Complete       The recommended package:  LIBPAM-SSH Keychain Monkeysphere The following packages will be "degraded":  openssh-client upgraded 0 packages, installed 0 new packages, downgraded 1 packages, To uninstall 0 packages, 0 packages have not been upgraded. You need to download the 566 KB package. After decompression, the extra space of 0 B is consumed. Do you want to continue? [y/n] Y get: 1 http://cn.archive.ubuntu.com/ubuntu/trusty/main openssh-client amd64 1:6.6p1-2ubuntu1 [566 kb] Download 566 KB, TIME 2 Seconds (212 kb/s)        dpkg: Warning: Downgrading openssh-client from 1:6.6P1-2UBUNTU2 to 1:6.6P1-2UBUNTU1 (reading database ... The system currently has a total of 200,015 files and directories installed. ) 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) ... Setting 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 Installation Openssh-server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.