Tutorial: Using SSH for Remote Connection to BPI-M5

1、Get ready: m5, 5V power cord, usb to ttl cable,network cable.

MobaXterm (Download link: https://mobaxterm.mobatek.net/download-home-edition.html?spm=wolai.workspace.0.0.6b9c394bQaPoSe)

2、Plug in the internet cable, USB to TTL cable, and power cord to start m5.
Use ifconfig (or ip a) to view the ip.

ifconfig

%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202023-09-05%20153400

ip a

%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202023-09-05%20141024

3、 click Session.

%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202023-08-29%20144143

choose SSH
Enter the IP address found in the Remote host. Check Specify username and enter the username. Prot defaults to 22 and does not need to be modified.

image

4、If you encounter problems using SSH

image

(1) First, check if SSH is installed.

ps -e|grep ssh

image

install SSH

sudo apt update
sudo apt install openssh-server

(2) Perhaps SSH did not start.

/etc/init.d/ssh start