Error connecting to SSH server at ''

33 views (last 30 days)
How to fix 'Error connecting to SSH server at'?
I am trying to run the deployToNVIDIAJetson.mlx file, but I am unable to establish an SSH connection in MATLAB to the Jetson board. I have the correct name and set up static ip addresses on both machines.
Jetson IP: % set via modifying /etc/network/interfaces
MATLAB Computer IP: % set by modifying static ip in network settings
The machines are linked via an ethernet cable, the Jetson has its own OpenSSH server active and running, and I am able to ping to the Jetson IP through Windows Powershell...
Am I missing something to establishing the connection in MATLAB? I could definitely use any help, I've been stuck on this for a couple days now...

Accepted Answer

Ramakrishna Mandalapu
Ramakrishna Mandalapu on 14 Feb 2020
Hi Viet,
Are you able to do ssh to the Jetson board?
In the jetson, put the connection "method" under ipv4 settings as below
In the terminal get IP address uisng the command
$ ifconfig
Then use this IP to connect to the Jetson from MATLAB.
If it is not resolved your problem, please provide code snippet or commands that you are using to connect to the Jetson from MATLAB.
  1 Comment
Viet Nguyen
Viet Nguyen on 14 Feb 2020
Hello Ramakrishna,
Thanks for getting back to me so quickly. The issue was actually username and password error. After resolving this though, I still wonder, do both computers always have to operate on static ip addresses for the ssh connection?

Sign in to comment.

More Answers (1)

Ramakrishna Mandalapu
Ramakrishna Mandalapu on 15 Feb 2020
Edited: Ramakrishna Mandalapu on 15 Feb 2020
Hi Viet,
You don't need to setup a static IP. As I mentioned above in the figure you should use that method (link local only) from network manager for the Jetson to auto configure it's IP. This makes the Jetson in the same network with the host computer when you are using a Ethernet cross over cable.
The Jetson and Host should be on the same network either with the direct crossover Ethernet cable or using a LAN (back bone ) connection. Always you should ensure that the board is able to ssh from the host when you want to access it from the MATLAB.
Note: 1. When you are connecting Jetson to LAN then you don't need to configure network manager to use link local only method on it. 2. No host side network settings in both case.
Thanks, Ramakrishna

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!