Querying SSH status and installing SSH service under Ubuntu

Source: Internet
Author: User
Tags ssh server

1, query the installation status of SSH

Rpm-qa |grep SSH

The above command may appear to indicate that RPM is not installed and can be installed using the following command

sudo apt-get install rpm

Some posts can also be installed with Yum, but there may be a hint that Yum is not installed, and if Yum is not installed, you can install it using the following command

sudo apt-get install Yum

2. Install SSH

You can use any one of the following commands

Apt-get Install SSH

Or

Yum Install SSH

After the above 2 steps found no egg, the above steps refer to: http://jingyan.baidu.com/article/08b6a591f0fafc14a9092275.html, directly continue to see other blogs.

Later reference: http://www.linuxidc.com/Linux/2015-03/115056.htm

Installation of the SSH server:

sudo apt-get install Openssh-server

Installation of the SSH client:

sudo apt-get install openssh-client

Start the SSH service

sudo service ssh start

Or
sudo service ssh restart

View the version of SSH

Ssh-v

You can connect to this Linux using the SSH client tool below.

Querying SSH status and installing SSH service under Ubuntu

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.