ssh connection fails
-
Re: ssh to pixel 3a - recv - from CB(2) ERROR:108
I have successfully connected to my phone (FP5) via adb. I followed the ubports guide to setting up ssh and everything looks in place. When I try to connect I get the error below:
kex_exchange_identification: read: Connection reset by peer Connection reset by 192.168.10.109 port 22
Have I missed something?
-
That reminds me that I wanted to make a MR for this: https://gitlab.com/ubports/docs/docs.ubports.com/-/merge_requests/659
i.e.:
If connecting fails with the message ::
kex_exchange_identification: read: Connection reset by peer
check the log on the UBports device ::
journalctl | grep sshd
If you see a message about missing hostkeys such as ::
sshd: no hostkeys available -- exiting.
You need to generate host keys with the following command ::
sudo ssh-keygen -A