"Analysis" Jetson opens Shell remote access

SSH (Secure Shell) is a secure network protocol that enables remote clients to manage servers or hosts. It allows users to remotely access remote Linux servers through the network in a secure manner. In this article, we will introduce how to enable SSH remote access on a Linux server.

First, you need to make sure that the SSH server is installed on the Linux server. In general, the SSH server has been installed. If not, you can use the following command to install the SSH server:


1. Install ssh

Ubuntu/Debian:

sudo apt-get install ssh

Then, you need to enable the SSH service. Start the SSH service with the following command:

sudo systemctl start ssh

2. ufw configure firewall

A firewall is a tool used to monitor and filter incoming and outgoing network traffic. It determines whether to allow or block specified traffic by defining a series of security rules.

The firewall configuration tool that comes with Ubuntu is called UFW (Uncomplicated Firewall). UFW is a user-friendly front-end tool for managing iptables firewall rules. Its main purpose is to make managing iptables easier, as the name says, simple.

At the same time, also make sure that your Linux firewall allows access to the SSH port (the default port number is 22), you can use the following command to add the allowed rule:

sudo apt update
sudo apt install ufw 				# 安装下 ufw

sudo ufw status verbose				# 检查 ufw状态
# Status: inactive					# 表示已激活防火墙

sudo ufw allow ssh					# 允许ssh访问,22端口
# Rules updated
# Rules updated (v6)

sudo ufw enable						# 启用防火墙
sudo ufw disable 					# 关闭防火墙

Firewall status: status: active indicates that it has been activated. If it is inactive, it means that it is not started, we can start the firewall through sudo ufw enable.
When starting the firewall, the server will prompt: Command may disrupt existing ssh connections. Proceed with operation (y|n)? It means that the command may interrupt the current ssh connection, whether to continue. We choose to continue: y, it will prompt that the firewall is turned on.

Finally, use a security tool to test that your Linux server SSH server is enabled correctly, such as Nmap. Just enter an address that only you remember:

Use the following command to check whether ssh is enabled

sudo service ssh status

3. Connect to jetson through the shell

Open a terminal in the shell, connect, enter the username and corresponding password in the Jetson system, and perform a connection test

insert image description here

reference article

Guess you like

Origin blog.csdn.net/ViatorSun/article/details/129917357