Error connecting to SSH server at ''

25 次查看(过去 30 天)
How to fix 'Error connecting to SSH server at 18.125.5.100'?
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: 18.125.5.100 % set via modifying /etc/network/interfaces
MATLAB Computer IP: 18.125.5.251 % 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...

采纳的回答

Ramakrishna Mandalapu
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.
Thanks,
Ramakrishna
  3 个评论
Mr Beast
Mr Beast 2023-6-12
编辑:Mr Beast 2023-6-12
Hello there, I am experiencing the same issue since few days. Have cross checked password and it gets connected by same credentials through PuTTY, but not from MATLAB.
Code snippet is as follows:
mex -setup C++
setenv('CUDA_PATH',fullfile("C:","Program Files","NVIDIA GPU Computing Toolkit","CUDA","v10.0"))
setenv('NVIDIA_CUDNN',fullfile("C:","Program Files","NVIDIA GPU Computing Toolkit","CUDA","cuDNN"));
setenv('NVIDIA_TENSORRT', fullfile("C:","Program Files","NVIDIA GPU Computing Toolkit","CUDA","TensorRT"))
setenv('OPENCV_DIR',fullfile("C:","Program Files","opencv","build"));
setenv('PATH', ...
[fullfile('C:','Program Files','NVIDIA GPU Computing Toolkit','CUDA','v10.0','bin') ';' ...
fullfile('C:','Program Files','NVIDIA GPU Computing Toolkit','CUDA','cuDNN','bin') ';'...
fullfile('C:','Program Files','opencv','build','x64','vc15','bin') ';'...
fullfile('C:','Program Files','NVIDIA GPU Computing Toolkit','CUDA','TensorRT','lib') ';'...
getenv('PATH')]);
ipaddress = '169.254.214.164'; % This is specific to your jetson, use ifconfig to find the ipaddress or set a static ip for the jetson
username = 'username';
password = ' ';
hwobj = jetson(ipaddress, username, password);
Thank you in advance.
Ramakrishna Mandalapu
Hi,
Can you post the error message here?
Also, please check if the firewall is blocking the connection.
-Ramakrishna

请先登录,再进行评论。

更多回答(1 个)

Ramakrishna Mandalapu
编辑:Ramakrishna Mandalapu 2020-2-15
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

类别

Help CenterFile Exchange 中查找有关 GPU Computing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by