Ubuntu Config SSH service

Source: Internet
Author: User

The Ubuntu system must have SSH service turned on, and the Windows system or other hosts can log on to the Ubuntu system remotely.

1, install package, execute sudo apt-get install Openssh-server

Ubuntu default installed Openssh-client, if your system is not installed, then use Apt-get install Openssh-client installation can.

2, then confirm Sshserver is started, execute ps-e |grep ssh

If only ssh-agent that Ssh-server has not started, if you see the sshd that the Ssh-server has been started.

The 3,ssh-server configuration file is located in/Etc/ssh/sshd_config and can be viewed by cat. You can define the service port for SSH, the default port is 22, or it can be changed to another port.

4, and then restart the SSH service sudo/etc/init.d/ssh Resart.

5,windows system machine on the use of familiar remote login tool, set the IP address of Ubuntu, open username and password, the protocol is SSH2, Port 22, you can.

Ubuntu Config SSH service

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.