cancel
Showing results for 
Search instead for 
Did you mean: 

SSH connection to STM32MP15-DK2

RMarg
Associate II

Hello,

I've try to connect to the through SSH but it's seem no sshd is running :

BOARD $> ssh root@xx.xx.xx.xx
BOARD $> ssh: connect to host xx.xx.xx.xx port 22: Network is unreachable
BOARD $> systemctl sshd -l
BOARD $> No ssh.service found

I would like to install openssh through apt but I can't found any package.

Indeed /ect/apt/sources.lsit.d is empty.

Currently How to manage the debian packages in OpenSTLinux distribution doesn't provide any information.

Can someone told me how install openssh with apt on the board ?

1 ACCEPTED SOLUTION

Accepted Solutions
RMarg
Associate II

So I found the mistake, in the wiki the address used is the brd address instead the inet address.

0690X000009k18EQAQ.jpg

View solution in original post

11 REPLIES 11

It seems you already know about the stm32 mpu wiki pages, just write "ssh" in the search box at the top.

RMarg
Associate II

There is no helpful support on the wiki !

DBuer
Associate II

I have two DK2 here on my desk and are working well with SSH right out of the box.

You don't have to install anything on the DK2 in terms of SSH. And by the way, you can't. These are so called YOCTO based Linux boxes. That means they are flashed with a preconfigured Linux image witch can't be changed will running. To install new system software (packages), you have to generate a new Linux image on a separate PC and flash it to your DK2.

Attach a HDMI monitor, keyboard and maybe a mouse, boot you DK2 and login. Then check if you have a proper IP-Adress and gateway set for your local network. I think your IP setup on your DK2 is not ok, that's why you can't reach it from your PC. And btw, checking "sshd" on you PC doesn't make sense when you cant login to you r DK2....

RMarg
Associate II

I did a mistake on my message and I've test sshd on the board of course.

For IP address issue, maybe see https://community.st.com/s/question/0D50X0000BKAFQ4SQP/my-stm32mp157adk1-does-not-have-an-ip-address-how-to-set-it-up

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
RMarg
Associate II

It's really seem no ssh-server running on the board.

For my part the ip addr show eth0 address give me a valid brd address. My board is connected to my pc via rj45 and I can ping servers.

Don't search for a sshd, you have "dropbear" installed as your ssh server. Do you find that:

root@stm32mp1:~# ps -ef | grep dropbear

root    710   1 1 18:17 ?    00:00:00 /usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -B

And with netstat you should find something listening on port 22

root@stm32mp1:~# netstat -tuln

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address      Foreign Address     State

tcp    0   0 127.0.0.1:8125     0.0.0.0:*        LISTEN

tcp    0   0 0.0.0.0:1534      0.0.0.0:*        LISTEN

tcp    0   0 0.0.0.0:19999      0.0.0.0:*        LISTEN

tcp    0   0 0.0.0.0:5355      0.0.0.0:*        LISTEN

tcp    0   0 :::22          :::*          LISTEN

Yes I see something listening on port 22 but when I try to connect to the board I get ssh: connect to host XX.XX.XX.XX port 22: Network is unreachable.

I'm sharing my wifi through rj45 maybe the problem is here ?