Ubuntu installation Ssh-service There is no dependency on the solution

Source: Internet
Author: User

(1) First confirm whether the Ubuntu system has SSH installed (usually installed by default in Ubuntu)

View by command: $dpkg-l | grep ssh
Here we can see that the system shows that Openssh-client has been installed, but there is no openssh-server.

Note that SSH does not complete the installation, here we can reinstall Openssh-client and openssh-server. Install it at the terminal using the following command:
$sudo Apt-get Install Openssh-client
$sudo Apt-get Install openssh-server{

This may occur: the dependency problem causes SSH to fail to install properly, and we use the command sudo aptitude install Openssh-server

Continuous selection after n

Ssh-server the installation is successful proceed to the next step

}

(2) Install at terminal using the following command:

$sudo apt-get Install SSH

(3) Next we will start the SSH service and execute the following command:

$sudo/etc/init.d/ssh Start

(4) then through the ifconfig command, check the system's IP address, SSH port number is generally 22.
The IP address of the frame selected in the figure is the system IP

(5) Remote tool login

This allows the remote tool to work properly.

Below and the Ubuntu terminal can be pasted in the content.

Configuration file that allows you to log in with the root user via SSH:

sudo vi/etc/ssh/sshd_config

Found: Permitrootlogin prohibit-password disabled

Added: Permitrootlogin Yes

sudo service ssh restart

OK, normal login!!!

Ubuntu installation Ssh-service There is no dependency on the solution

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.