Connecting UBUNTU18 servers using the Xshell 5 tool

Source: Internet
Author: User

1. Install SSH

Open terminal window, enter command

sudo apt-get install Openssh-server

Wait for installation to complete

2. Check if the SSH service is started

Input command

sudo ps-e |grep ssh

Seeing sshd indicates that the service has been started, such as

If it is not started, enter the command

sudo service ssh start
3. Modify the configuration file

Input command

sudo gedit/etc/ssh/sshd_config

Comment out the "Permitrootlogin Without-password" in the configuration file with a "#" number and add a "Permitrootlogin yes" to save the file, such as. This is done to allow the root user to log on.

Or simply copy the following to the configuration file

------------------------------Content------------------------------# authentication:logingracetime 120# Permitrootlogin without-passwordpermitrootlogin yesstrictmodes Yes------------------------------inside Capacity------------------------------

4. Restart
/etc/init.d/ssh restart
5. View IP Address
Ifconfig

6. Install Xshell 57. Connect

Root user

Connecting UBUNTU18 servers using the Xshell 5 tool

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.