Ubuntu Open Remote SSH service

Source: Internet
Author: User

First, the experimental requirements

1. Open the remote service in the installed Ubuntu 16.04 LTS 64-bit system

2. Use SECURECRT for remote

Second, step

1. OpenSSH is not installed when the system is installed

Update System Tools and dependencies: sudo apt-get update execute installation command sudo apt-get install openssh-server openssh-client

2. Start SSH

First check whether SSH is running, execute the sudo ps -e |grep ssh command, if there is no display, the SSH service is not running. Instead, an sshd word appears, indicating that the SSH service is running.

If SSH is not running, use the sudo service ssh start command to start.

#启动/etc/init.d/ssh start# Stop/etc/init.d/ssh stop# restart/etc/init.d/ssh restart# use service command # to start sudo service ssh start# Stop sudo service ssh stop# restart sudo service ssh restart

3. Modify the configuration file

Note: The configuration file here is sudo/etc/ssh/sshd_config

To open a profile with a name: sudo vi/etc/ssh/sshd_config the permitrootlogin without-password line in the configuration file; Add a new line: Permitrootlogin yes; Save the configuration file and restart the SSH service.

4. Remote connection test

Configure the native IP and port number in the SECURECRT to remotely

Ref: 1190000004686476

Ubuntu Open Remote 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.