C:\Users\PaulM>ssh pi@proxy55.rt3.io -p 32481
kex_exchange_identification: Connection closed by remote host
Connection closed by 3.67.0.82 port 32481
When doing sudo apt-get upgrade on new Raspberry Pi 5
RemoteIt wont work anymore!
Please check.
C:\Users\PaulM>ssh pi@proxy55.rt3.io -p 32481
kex_exchange_identification: Connection closed by remote host
Connection closed by 3.67.0.82 port 32481
When doing sudo apt-get upgrade on new Raspberry Pi 5
RemoteIt wont work anymore!
Please check.
use -v -v -v on the ssh connect ssh
ssh -v -v -v -v pi@proxy55.rt3.io -p 32481
make sure the firewall rules didn’t change, make sure when on the PI you can still ssh to localhost IE ssh pi@127.0.0.1
My thought is maybe they have blocked localhost access for some reason, Not sure which OS are you using also.
Also make sure SSHD is running, maybe it didnt restart after upgrdae.
Not enough information to know.
If you are using the Raspberry Pi Imager and a standard Raspberry Pi OS, SSH is not turned on by default. This would require you to be on the same LAN as the RPi and to know the LAN IP of the RPi OR to have a monitor and keyboard connected to the RPi.
This is their current instructions https://www.raspberrypi.com/documentation/computers/remote-access.html#ssh
We have two Raspberry Pi devices running on a local network. There is no firewall issue, and we have already reproduced the problem. When running:
sudo apt get upgrade
SSH, VNC, etc., all get blocked, and the Pi is no longer reachable, even using the local IP. It seems to be a permission issue or something similar.
The other Pi5, where we did no upgrade, is totally fine.
So looking at that debug the SSHD service is not returning a banner, so it looks SSHD is wedged. Is that pi available on the local network or from another device? I do not think this is a remote.it problem.
I do not believe it will be accessible even on the local lan
Probably not remoteit problem, maybe caused bei CI/CD of raspberry (for Pi5). Its for sure related to the upgrade command and you can easily reproduce yourself. I see also no solution to this, I will close the thread.
Thanks for trying.
Ok its defintely related to RemoteIt.
I have two Raspberry Pi devices on my local network, both connected to Remote.it. One device shows a key exchange error (kex) when trying to SSH, while the other is reachable. However, rebooting the reachable Pi also reboots the Pi with the kex error. It seems the identification or connection setup with Remote.it is causing conflicts between the devices.
Did you try to SSH to the unreachable device while on the LAN using its LAN address and not using a Remote.It connection?
Remote.It doesn’t touch the SSH service or the listening local port.
he error ssh_exchange_identification: connection closed by host
occurs when the SSH connection is abruptly terminated by the remote host. This issue can arise from various causes. Here are some common ones:
sshd_config
) on the server. This could include limitations on the number of simultaneous connections or specific rules that disallow your connection./etc/hosts.allow
and /etc/hosts.deny
) to control access, and your IP address might not be allowed.MaxStartups
setting in sshd_config
might be set too low, limiting the number of concurrent unauthenticated SSH connections.To troubleshoot and resolve this issue:
/var/log/auth.log
or /var/log/secure
) for detailed error messages./etc/ssh/sshd_config
) for any restrictive settings./etc/hosts.allow
and not denied in /etc/hosts.deny
.sudo systemctl restart sshd
or sudo service ssh restart
).By systematically checking these areas, you should be able to identify and resolve the cause
When installing Remote.it on two Raspberry Pi 5s on the same local network, I can reboot both Pis by rebooting just one of them. This behavior is unusual and seems to indicate a problem with the network configuration or identification within Remote.it.
Are you rebooting the Pi locally or via a Remote.It connection? Did you clone your SD card?
It should not be possible to reboot both pis with a single reboot command issued directly to a Pi.
Can you please give exact details on how you are connecting to the Pi to reboot it and the command you are issuing?
Hi,
It appears that the issue is related to the new Raspberry Connect (Beta) Service. It seems there is an interference between Remote.It and Raspberry Connect.
https://connect.raspberrypi.com/
We are still investigating the exact cause of this interference.
Where can I find log files from remoteit service?
The logs for the remoteit daemon would be found in the syslog.
If you’re encountering the kex_exchange_identification
error when trying to connect to a Raspberry Pi 5, it usually indicates an issue with the SSH connection. Here are some steps to troubleshoot and resolve the problem:
Ensure that your Raspberry Pi and the device you’re connecting from are on the same network and can communicate with each other.
ping [Raspberry Pi IP address]
from your PC to check if the Pi is reachable.Make sure the SSH service is running on your Raspberry Pi.
sudo raspi-config
.Interfacing Options
> SSH
and enableEnsure the SSH configuration on your Raspberry Pi is correct.
sudo nano /etc/ssh/sshd_config
.bash
Copy code
PermitRootLogin yes
PasswordAuthentication yes
sudo systemctl restart ssh
.Make sure no firewall or security software is blocking the connection.
ufw
(Uncomplicated Firewall) is active and properly configured: sudo ufw status
.If you’re using SSH keys, ensure they are correctly configured.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
ssh-copy-id pi@[Raspberry Pi IP address]
Ensure your Raspberry Pi is up to date.
sudo apt update
and sudo apt upgrade
to update and upgrade the system packages.Review the SSH logs for more detailed error messages.
sudo journalctl -u ssh
or check the log file: sudo nano /var/log/auth.log
Sometimes a simple restart can resolve connectivity issues.
sudo reboot
to restart your Raspberry Pi.Example Troubleshooting Commands:
sh
Copy code
ping [Raspberry Pi IP address]
sh
Copy code
sudo systemctl status ssh
sh
Copy code
sudo systemctl restart ssh
sh
Copy code
sudo journalctl -u ssh
If these steps do not resolve the issue, you might need to provide more specific details about your setup and the exact error messages you’re encountering. This can help in diagnosing the problem more accurately.
4o
@Ba1ancer can you try using the connection again without any changes? Do not stop it, just re-launch it? It is possible that we got a not available and stop trying.
One of the Raspberry Pis where we previously encountered a KEX (Key Exchange) error has suddenly come back online.
We are now able to SSH into it and have attempted to determine what happened by checking the log files.
Could you please provide more specific guidance on which log files to check and where they are located to help us understand what might have caused the issue?