SSH to RoboRio from Ubuntu 22.04

Port 22 is closed on my brand new RoboRio 2.0 that I just unboxed and powered up. I have tried to SSH from Ubuntu 22.04 via wired Ethernet and USB.

Can anyone advise, please? Details follow.

nmap reports the following for 10.42.0.64, the USB connection:

nmap 10.42.0.64
Starting Nmap 7.80 ( https://nmap.org ) at 2023-12-14 15:23 EST
Nmap scan report for 10.42.0.64
Host is up (0.0023s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
3580/tcp open nati-svrloc

Nmap done: 1 IP address (1 host up) scanned in 0.11 seconds

ssh [email protected]

fails with

ssh: connect to host 10.42.0.64 port 22: Connection refused

because port 22, the default ssh port, is closed. Also,

ssh ssh://[email protected]:443
kex_exchange_identification: Connection closed by remote host
Connection closed by 10.42.0.64 port 443

The RoboRio responds to a ping:

ping 10.42.0.64
PING 10.42.0.64 (10.42.0.64) 56(84) bytes of data.
64 bytes from 10.42.0.64: icmp_seq=1 ttl=64 time=0.278 ms
64 bytes from 10.42.0.64: icmp_seq=2 ttl=64 time=0.211 ms
64 bytes from 10.42.0.64: icmp_seq=3 ttl=64 time=0.206 ms
64 bytes from 10.42.0.64: icmp_seq=4 ttl=64 time=0.232 ms

Same story for wired ethernet:

ssh [email protected]
ssh: connect to host 192.168.17.163 port 22: Connection refused

nmap 192.168.17.163
Starting Nmap 7.80 ( https://nmap.org ) at 2023-12-14 15:49 EST
Nmap scan report for 192.168.17.163
Host is up (0.0044s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
80/tcp open http
443/tcp open https
3580/tcp open nati-svrloc

Ping works fine

ping 192.168.17.163
PING 192.168.17.163 (192.168.17.163) 56(84) bytes of data.
64 bytes from 192.168.17.163: icmp_seq=1 ttl=64 time=0.206 ms
64 bytes from 192.168.17.163: icmp_seq=2 ttl=64 time=0.165 ms
64 bytes from 192.168.17.163: icmp_seq=3 ttl=64 time=0.149 ms

My web browser connects to 192.168.17.163 via HTTP and HTTPS, though it complains about an invalid cert.

Thank you for your kind consideration. Please stay safe and well.

Have you tried reflashing the SD card?

USB is a fun one:

I’m 99% sure the stock image that comes on a rio 2 does not have ssh configured normally. Its a safe mode image. You do need to reflash the SD card at least once to get an FRC image on it, and that does have everything working correctly.

Ah, that would explain it. Let me get on that.

The Ubuntu-specific directions here: Howto: Connect to RoboRIO USB on Linux work a treat!

Thanks.

I thought the SD card WAS the image for the Rio2. Unless you mean the card it comes with is already imaged. I was thinking it was blank, but i havent touched a brand new one in quite a while.

It comes with an image already on the card, but I’m pretty sure its a safe mode only image. It’s definitely not FRC related or usable at all.

I haven’t found directions for flashing from Linux. If the download is an ISO, I can copy it with dd. But it might just be better to let the team flash it.

You can flash an SD card in Linux using Balena Etcher. But you’ll need the image .zip file that is installed by the Windows only NI Game Tools installer.

Hi, Everyone,

Thanks for your help. Our programming team updated the SD card to the latest version and, hey, presto, I now can ssh.

I feel so silly!

Thanks again,

Eric

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.