Something has happened with the SSH process on a remote server so that now when trying to connect it rants:
kex_exchange_identification: read: Connection reset by peer
It looks like the SSH daemon just needs to be restarted.
But the problem is that there is no access to the server other than via SSH. The only option is abrupt reboot which is undesirable.
However, the remote server's filesystem is mounted locally via sshfs and that continues to work fine.
Is there any way to use the existing sshfs session to run commands on the remote?
Related:
- How to run ssh commands on a host after mounting via sshfs and avoid 2FA? — closed for being declared duplicate
- Using an already established SSH channel — only works if you plan for it in advance
/etc/crontab
accessible? What interesting is accessible? (/proc
?/sys
?). – Kamil Maciorowski Jul 28 '23 at 15:58