SSH connection to Ubuntu

Source: Internet
Author: User

A: Using X-shell to connect Ubuntu has not been connected, a solution.

Second: The specific solution process

1. Network

Since the remote Ubuntu system, then the first two networks are not in a network segment, can ping the pass?

A) on Windows PC--cmd Open Command window, type: ipconfig command, view host IP.

b) Ubuntu system, CTRL + ALT + F1 Open command terminal, type ifconfig command, view Ubuntu Internet IP.

c) Then in the Ubuntu system terminal type: Ping +windows Internet IP, check whether the ping pass, not check the network situation, and whether in a network segment, ping in the next step

d) In the Windows command window, type: Ping +ubuntu Internet IP, check whether the ping is on, not check the network, and whether it is in a network segment, ping in the next step

2. SSH Service

Since it is through the sshserver to remote, then when the network unblocked to solve is about the Ubuntu system ssh problem.

A) Check to see if the SSH service is installed

In the Ubuntu Terminal Command interface type:

SSH localhost

If the following prompt appears, it is not installed:

Ssh:connect to Hostlocalhost Port 22:connection refused

b) Installing the SSH service

If you see no sshserver installed through the previous steps, type the following command to install:

sudo apt-getinstall–y openssh-server

c) Start SSH after installation is complete

Service SSH Start

d) You can use the command after the boot is complete: ps–e | grep ssh to view the SSH status, or view the port number.

6455? 00:00:00 sshd

Indicates that the startup was successful.

SSH connection to 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.