SSH from MAC stop working
-
@pemy Try deleting the
known_hosts
file in/home/pi/.ssh/
-
@pemy said in SSH from MAC stop working:
Usetelnet RETROPIEIP 22
and see if you get the SSH banner, you should get get something likeTrying RETROPIEIP... Connected to RETROPIEIP. Escape character is '^]'. SSH-2.0-OpenSSH_7.4
If you don't get that, then there's something in your network blocking the connection.
If you run
ssh localhost
from the PI system, do you get a login prompt ? -
@jonnykesh
ok thanks
I didn't try that ... I will as soon as possible
Do I need to remove it from my mac? my retropie> or both?Cheers
D -
@mitu
tenet from my PI (command not found)
i did try ssh localhost command from my PI
I'm getting :
"
authenticity of host localhost can't be established
continue with connection?
"
I type: yes
and after that I'm getting:
permanently added localhost to the list of known host -
@jonnykesh
I removed know_host from my mac as well
I still have the same problem -
@pemy
ok guys
find a solution thanks to you
After removing the known_hosts from my mac (not from my pi)
I used this command
ssh pi@mypiIPaddress
and I'm getting from my mac terminal:
The authenticity of host '192.168.0.26 (192.168.0.26)' can't be established.
ECDSA key fingerprint is : "myfingerprinthashnumber"
Are you sure you want to continue connecting (yes/no)? yesand now I'm IN!!
2 problems / questions
if I try using the normal
ssh pi@retropie
it is not working whyyyyyy?? :)also:
the problem is how to solve this issue with a dhcp server that change IP address all the time ?I think I'm getting this problem because the ssh security system takes into account my the IP of my mac (as identifier ??) so if I change the ip on the mac the ssh stop my mac to connect to retropie?
is that the reason? -
@pemy You may run into challenges using just a name like that, as names over IP typically need to be resolved via DNS. You might try
ssh pi@retropie.local
which seems to work consistently for me. Adding.local
when trying to access machines on my local network from the Mac has worked for many devices on my network over the years. -
@caver01 you are right
using local works out of the box (now)
thanks -
@pemy said in SSH from MAC stop working:
I think I'm getting this problem because the ssh security system takes into account my the IP of my mac (as identifier ??) so if I change the ip on the mac the ssh stop my mac to connect to retropie?
No, the message you got is because the IP address of the RetroPie has changed. This message appears every time you connect to a new IP address/Host and the (IP/Host, SSH Host Key) pair is different than what is recorded in
~/.ssh/known_hosts
. -
@mitu in this case he got the message because he deleted known_hosts on our recommendation.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.