Connect to Linux remotely using Xshell

Source: Internet
Author: User
Tags ssh server

The Linux system is not unfamiliar to programmers, it is a good development platform for it technician, so mastering the operation of Linux system is very useful for a programmer. It's not convenient for people who are accustomed to using Windows to operate directly under Linux, and this article simply explains how to use Xshell to remotely control your Ubuntu system (a distribution version of Linux) under Windows. Xshell is a powerful secure terminal emulation software that supports SSH1, SSH2, and the Telnet protocol of the Microsoft Windows platform. It can be easily connected to your Ubuntu system under the Windows system for control purposes.

Before the next operation, the default reader has installed Xshell and Ubuntu14.04, if not installed, please click the link below to download the installation:
Ubuntu download
Xshell Download
Installation Tutorial self-Baidu or google!

The first step, of course, is the boot, open a joke ^_^. Obviously, before making a remote connection, you have to know the IP address of the Ubuntu system to connect, so we have to look at the system IP first. Open the command terminal and enter the following command:

Ifconfig-a

OK, the red box has been marked out the IP address already know, hurriedly connect it!
The second step, according to some of the online tutorials, open Xshell, enter the command:

192.168. 85.128

See could not connect ... When the heart is not happy, immediately think of giving up! Of course, we can't give up, let's go.
There are two reasons for this problem, one is that Openssh_server is not installed and the other is installed but not turned on. Enter the command:

Ps-e | grep ssh

There are two possible results because there is no installation and no open two reasons! One situation is that the input command press ENTER after no display, as shown, your system is not installed Openssh-server, there is a command to enter the ssh-agent after the word, Indicates that your system has Openssh-server installed but not turned on.

Step three, install Openssh-server. This is for the absence of the installation of Openssh-server, we manually installed, already installed users jump to the fourth step. Enter the command:

sudo apt-get Install Openssh-server

Enter the password, note that the password is not displayed when the input is completed directly press ENTER.

Fourth step, start Ssh-server, enter the command:

/etc/init.d/ssh start

When the system is prompted to start successfully, the settings on the terminal are basically complete.
Then go back to the second step and enter the command:

192.168. 85.128

Choose OK, enter the next step, enter the password, if good luck, can successfully connect, if bad luck, will be like the author encountered the following situation.

The SSH server rejected your password,try again ...

Oh, the original password input error Ah! I lose again, refuse again, lose again, lose again ... Always lose, always refused ... At this time 10,000 of the heart of what horse Pentium. Now that the problem has been mentioned, the solution is still there, a change of user name login to try. If still not, use one of the simplest and most crude methods mentioned online to uninstall Openssh-server reinstall. Enter the uninstall command:

sudo apt-get Remove Openssh-server

Then repeat the installation steps above! Basically, they can succeed. After successful input a Linux command, there is a return to the connection is not a problem, you can experience the convenience of remote control and fun!

Connect to Linux remotely using Xshell

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.