Ubuntu16.04 install the ssh service and implement remote access. ubuntu16.04ssh

Source: Internet
Author: User

Ubuntu16.04 install the ssh service and implement remote access. ubuntu16.04ssh
1. Check whether the ssh service is installed.

Apt-cache policy openssh-client openssh-server

Openssh-client is installed in ubuntu by default, and openssh-server needs to be installed manually

Ii. Install the ssh service

Apt-get install openssh-server

3. view the enabling status of the ssh service

Ps-e | grep ssh

If sshd appears, the ssh service is enabled. If only the agent is available, it is not enabled successfully.

4. Enable the ssh service

/Etc/init. d/ssh start

5. Remote Access 5.1 and Configuration File Modification

Vim/etc/ssh/sshd_config

Comment out PermitRootLogin without-password

Add PermitRootLogin yes in the following line.

5.2 restart the ssh service

/Etc/init. d/ssh restart

5.3 check the ssh service activation status

Ps-e | grep ssh

5.4 remote access to ubuntu using putty

Enter the ip address, logon name, and password to remotely access 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.