![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/271564/image.jpeg)
Error connecting to SSH server at ''
24 次查看(过去 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...
0 个评论
采纳的回答
Ramakrishna Mandalapu
2020-2-14
Hi Viet,
Are you able to do ssh to the Jetson board?
In the jetson, put the connection "method" under ipv4 settings as below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/271564/image.jpeg)
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
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
2023-6-13
Hi,
Can you post the error message here?
Also, please check if the firewall is blocking the connection.
-Ramakrishna
更多回答(1 个)
Ramakrishna Mandalapu
2020-2-15
编辑: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
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!