Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the failure of Xshell connection Ubuntu connection

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces you Xshell connection Ubuntu connection failure how to solve, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Description

Just started with Ubuntu, found all kinds of discomfort. Using Xshell to connect to Ubuntu (installed under the virtual machine 18.04.3) will never connect.

Troubleshoot problems and view firewall settings

Instruction

Sudo ufw status

The one who found me turned off the firewall.

The SSH service is not enabled on the Ubuntu host

Open instruction

Sudo apt-get install openssh-server

After installing the SSH service, you can connect to the Ubuntu system.

Change the apt source of Ubuntu to the domestic source and enter the editing directory

Command

Sudo vim / etc/apt/sources.list University of Science and Technology of China

Command

Deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiversedeb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiversedeb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiversedeb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiversedeb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiversedeb-src https://mirrors.ustc.edu.cn/ Ubuntu/ bionic-backports main restricted universe multiversedeb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiversedeb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiversedeb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiversedeb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse Ali Cloud Source

Instruction

Deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb-src http://mirrors .aliyun.com / ubuntu/ bionic-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse effective Command sudo apt-get updatesudo apt-get upgradedocker Common Command Operation tomcat

Pull the image

Docker pull tomcat

Start tomcat

Docker run-- name tomcat1-d-p 8080 tomcat

Check to see if the startup is successful

Docker ps-an operation Nginx

Pull the image

Docker pull nginx

Start Nginx

Docker run-- name nginx-d-p 80:80 nginx operation mysql

Pull the image

Docker pull mysql

Start mysql

Docker run-- name mysql01-e MYSQL_ROOT_PASSWORD=123456-d-p 3306 MYSQL_ROOT_PASSWORD=123456 3306 mysql on how to solve the failure of Xshell connection Ubuntu connection is shared here. I hope the above content can be helpful to you and you can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report