Ubuntu opens port 22

Ubuntu opens port 22

Scenario

You need to use the xshell tool to connect to the Ubuntu server via ssh. Default port 22.

result

General Connection


Command line connection

//Connect directly to ssh remote machine [email protected] through command
Or telnet 192.168.67.128 22

analyze

There is no problem with the ip and port.
Check whether the server port 22 is enabled.
lsof -i:22

//Restart is required after installation sudo apt-get install openssh-server openssh-client 

service ssh start
ssh localhost
lsof -i:22


SSH remote connection access

This is the end of this article about how to open port 22 in Ubuntu. For more information about how to open port 22 in Ubuntu, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Solution to the startup error problem of AndroidStudio4.1 under Ubuntu
  • Solution to the error problem of Vscode remotely connecting to Ubuntu
  • Detailed tutorial on using VS Code and installing C/C++ plugins in Ubuntu
  • How to change password and set password complexity policy in Ubuntu
  • How to install and configure GitLab on Ubuntu 20.04
  • How to install vncserver in Ubuntu 20.04
  • Ubuntu20.04 VNC installation and configuration implementation
  • Ubuntu configuration Pytorch on Graph (PoG) environment process diagram

<<:  How MySQL uses transactions

>>:  Vue keeps the user logged in (various token storage methods)

Recommend

Pure CSS to achieve candle melting (water droplets) sample code

Achieve results Implementation ideas The melting ...

MySQL query sorting and paging related

Overview It is usually not what we want to presen...

Example code of Vue3 encapsulated magnifying glass component

Table of contents Component Infrastructure Purpos...

Regular expression usage in CSS selectors

Yes, CSS has regular expressions too (Amen) Two p...

The unreasonable MaxIdleConns of MySQL will cause short connections

1 Background Recently, some performance issues ha...

Linux firewall status check method example

How to check the status of Linux firewall 1. Basi...

Two ways to remove the 30-second ad code from Youku video

I believe everyone has had this feeling: watching ...

How to connect Navicat to the docker database on the server

Start the mysql container in docekr Use command: ...

How to run nginx in Docker and mount the local directory into the image

1 Pull the image from hup docker pull nginx 2 Cre...