Ubuntu 12.4 Install SSH

Source: Internet
Author: User
Tags nameserver

1: First check if sshd is installed

Ps-e | grep sshd

If blank appears, the service is not installed

Ps-e | grep sshd
450? 00:00:00 sshd

If you see sshd that means Ssh-server has been activated.

2:sudo apt-get install openssh-server with this command

Error first excerpt others, I can not do, because the operation on the server is not good to move out:

Install the terminal input on the virtual machine

sudo apt-get install opensshserver is reading the package list ...

Completing the dependency tree that is analyzing the package is reading state information ...

Complete now no available package openssh-server,

But he was quoted by other packages. This may mean that the missing package may have been discarded or can only be found in other publishing sources

E: Package Openssh-server not yet available for installation candidate

Probably Chinese like this, I use English, tangled for a few hours, looked up countless paste copy article finally found, is our apt-get not updated, of course, if you are the latest system does not update also line, but I believe that many people need to update it, the Operation command is as follows:

sudo apt-get update

The domain name parsing error will be prompted during execution, and DNS resolution should be configured

3:echo nameserver 114.114.114.114 >/etc/resolv.conf
echo nameserver 114.114.115.115 >/etc/resolv.conf

Ubuntu 12.4 Install SSH

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.