2019-10-02 06:54 AM
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 ?
Solved! Go to Solution.
2019-10-03 03:21 PM
So I found the mistake, in the wiki the address used is the brd address instead the inet address.
2019-10-02 07:45 AM
It seems you already know about the stm32 mpu wiki pages, just write "ssh" in the search box at the top.
2019-10-02 09:09 AM
There is no helpful support on the wiki !
2019-10-03 02:06 AM
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....
2019-10-03 03:53 AM
I did a mistake on my message and I've test sshd on the board of course.
2019-10-03 06:53 AM
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
2019-10-03 09:45 AM
It's really seem no ssh-server running on the board.
2019-10-03 09:45 AM
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.
2019-10-03 11:24 AM
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
2019-10-03 03:14 PM
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 ?