Xshell Ubuntu Remote Login

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_34258344/article/details/97394189

Foreword

This paper describes the Ubuntu install and start ssh, telnet achieve Xshell Ubuntu.

1, install ssh

Get the latest installation package

sudo apt-get update

root user command

apt-get install openssh-server

Or ordinary users use the command

sudo apt-get install openssh-server

Here Insert Picture Description
Test whether the installation was successful using the command

ps -s | grep ssh

Below, showing the installation was successful
Here Insert Picture Description

2, configuration services

input the command

sudo vim /etc/ssh/sshd_config

Ssh can be configured to, as shown below
Here Insert Picture Description

3, start the service

input the command

sudo service sshd star

Services start ssh service

4, view the status of running ssh service

input the command

sudo service sshd status

You can view the status of services running ssh, ssh can be seen from the chart is "running"
Here Insert Picture Description

5, see the IP address of the Ubuntu

input the command

ifconfig

From the figure can be seen the machine 192.168.xx IP address (IP address given here inconvenient)
Here Insert Picture Description

6, Xshell landing Ubuntu

As shown below, set the properties in the Xshell, including host ip, port number, user name and password to complete telnet Ubuntu.

In the Host IP and port number for this interface input to register and use ifconfig host IP host can get, you can view or modify the port number in the ssh configuration
Here Insert Picture Description

Click on the link later in this screen, enter a user name and password
Here Insert Picture Description

Here click on "Accept and Save"Here Insert Picture Description

As can be seen from the chart below, log on using Ubuntu Xshell success.
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_34258344/article/details/97394189