Raspberry Pi ssh connection error

조회 수: 19 (최근 30일)
Onur
Onur 2014년 8월 10일
댓글: Jon Richards 2024년 11월 24일 20:09
I have setup both my host computer ethernet and the raspberry pi.
I can connect to raspberry pi from host computer via ssh when using putty with no problem.
However neither simulink nor matlab command window can connect. this error comes up:
SSH connection to host 169.254.0.2 failed:
FATAL ERROR: Network error: Connection refused
In the troubleshooting it says to check ip address and password. these must be correct as I use the same with putty.
What could be the problem here?

답변 (4개)

Murat Belge
Murat Belge 2014년 9월 8일
From the error message you are getting, Connection Refused, the Raspberry Pi is there but for some reason refusing the SSH connection request. Try to reset you board and see if you can connect. You may need to login to your Raspberry Pi using a monitor and a keyboard and try to see why SSH server is refusing a connection.
  댓글 수: 2
Onur
Onur 2014년 9월 9일
Murat,
Is it possible to compile and build the executable without connecting to the target. i can then move it to raspberry-pi home folder via putty. I'm hoping once the executable is built, it doesn't require a connection to Matlab host other than parameter updating or progress tracking purposes. Thanks Onur
Ahmed
Ahmed 2015년 1월 31일
excuse me, i want to ask 1 question where i also have the same problem. Firstly, before you connect the raspberry pi with computer to download the matlab raspi firmware, have you boot the raspberry pi like in youtube (first time use) from the noobs website?

댓글을 달려면 로그인하십시오.


Dennis McLeod
Dennis McLeod 2015년 1월 31일
Hi Onur,
In general only two conditions cause this error:
1. the SSH server is not running on you Raspberry PI. 2. Port 22 used by SSH is being blocked by a firewall,
Dennis
  댓글 수: 1
Kurt Stewart
Kurt Stewart 2018년 5월 4일
if the port is being blocked by a firewall would you still be able to connect using Putty?

댓글을 달려면 로그인하십시오.


Mojtaba
Mojtaba 2018년 7월 7일
I have exactly the same issue. I am able to connect to the pi through putty, but matlab's ssh connection fails! Is it a common issue?
  댓글 수: 1
Saipraveen
Saipraveen 2018년 11월 29일
Could you send a screen shot of the ip config command ? And what type of connection are you using to interface with the raspberry pi ?

댓글을 달려면 로그인하십시오.


Kazem Gheysari
Kazem Gheysari 2023년 8월 5일
Hi Guys
I solved this issue by the following tasks:
Resolve the issue of the ssh public key:
  1. Edit the /etc/ssh/sshd_config file.
  2. Change PasswordAuthentication and ChallengeResponseAuthentication to yes.
  3. restart
  댓글 수: 1
Jon Richards
Jon Richards 2024년 11월 24일 20:09
This is the correct answer. Solved it for me. Thanks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by