Introduction
In this article, we will discuss the issue of being unable to connect to SSH on a Jetson Nano using USB tethering with a phone connected to a network laptop (Arch Linux). This problem can occur for various reasons, and we will go through the steps to troubleshoot and resolve it.
Setting Up the Environment
To begin, let's ensure that the following prerequisites are met:
- Jetson Nano running Ubuntu 18.04
- Phone with USB tethering capability
- Network laptop running Arch Linux
The Issue: SSH Doesn't Work
When attempting to connect to the Jetson Nano via SSH from the network laptop, the following error message may appear:
ssh: connect to host port 22: Connection refused
Troubleshooting
Check Network Connection
First, check the network connection between the Jetson Nano and the network laptop. Ensure that both devices are connected to the same network. You can verify this by pinging the Jetson Nano from the network laptop:
ping
If the ping is successful, continue to the next step. If not, troubleshoot the network connection.
Check SSH Service
Next, check the status of the SSH service on the Jetson Nano:
sudo systemctl status ssh
If the SSH service is not running, start it:
sudo systemctl start ssh
Check Firewall
Check if the firewall is blocking the SSH connection. Open the firewall:
sudo ufw allow OpenSSH
Check USB Tethering
Ensure that USB tethering is enabled on the phone and working correctly. Follow the phone manufacturer's instructions to enable USB tethering.
Check Network Settings
Verify that the Jetson Nano has been assigned a static IP address. This can be done by editing the /etc/network/interfaces file:
sudo nano /etc/network/interfaces
Add the following lines:
iface eth0 inet static
address
netmask 255.255.255.0
Conclusion
In conclusion, when unable to connect to SSH on a Jetson Nano using USB tethering with a phone connected to a network laptop, troubleshoot the network connection, check the SSH service, firewall, USB tethering, and network settings. Follow the steps outlined in this article to resolve the issue.