I upgraded my VPS from 13.1 to 13.2-RELEASE
Before upgrade I did pkg update & upgrade, then freebsd-update fetch, install and upgrade -r 13.2-RELEASE
After that freebsd-update install, reboot when required and after that the second freebsd-update install.
At this phase I accidentally run out of space on device. I freed space and re-did last steps. After that seemed that the upgrade went through.
All this I did over SSH, as said this is running on VPS.
At this point I noticed that creating new SSH connections failed. I restarted the sshd service from the SSH connection I had alive as I remembered I had similar problem with 13.0 -> 13.1 upgrade which was resolved simply rebooting.
So that's what I did.
After this the server comes up, Nginx is working, but all SSH attempts fail with connection closed, with no password query.
VPS admin can locally log in. He noticed that chown seems to be missing, so this leads me to suspect that something has failed in the upgrade.
All this takes like 0 seconds.
I'm having a feeling that something has gotten lost from the server, but the sshd service is running and can be seen with nmap:
As I'm writing this I notice that this service should probably be called "ssh"?
Okay with different parameters nmap gave:
I have tried to connect with several FreeBSD clients and PuTTY. I'm drawing blanks here.
All the clues are appreciated.
-Jukka
Before upgrade I did pkg update & upgrade, then freebsd-update fetch, install and upgrade -r 13.2-RELEASE
After that freebsd-update install, reboot when required and after that the second freebsd-update install.
At this phase I accidentally run out of space on device. I freed space and re-did last steps. After that seemed that the upgrade went through.
All this I did over SSH, as said this is running on VPS.
At this point I noticed that creating new SSH connections failed. I restarted the sshd service from the SSH connection I had alive as I remembered I had similar problem with 13.0 -> 13.1 upgrade which was resolved simply rebooting.
So that's what I did.
After this the server comes up, Nginx is working, but all SSH attempts fail with connection closed, with no password query.
VPS admin can locally log in. He noticed that chown seems to be missing, so this leads me to suspect that something has failed in the upgrade.
Code:
user@host:~ $ ssh -vv user@remote.host -p22
OpenSSH_8.8p1, OpenSSL 1.1.1o-freebsd 3 May 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "remote.host" port 22
debug1: Connecting to remote.host [1.2.3.4] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/id_rsa type -1
debug1: identity file /home/user/.ssh/id_rsa-cert type -1
debug1: identity file /home/user/.ssh/id_dsa type -1
debug1: identity file /home/user/.ssh/id_dsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa type -1
debug1: identity file /home/user/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/user/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/user/.ssh/id_ed25519 type -1
debug1: identity file /home/user/.ssh/id_ed25519-cert type -1
debug1: identity file /home/user/.ssh/id_ed25519_sk type -1
debug1: identity file /home/user/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/user/.ssh/id_xmss type -1
debug1: identity file /home/user/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.8 FreeBSD-20211221
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.3 FreeBSD-20211221
debug1: Fssh_compat_banner: match: OpenSSH_9.3 FreeBSD-20211221 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to remote.host:22 as 'user'
debug1: Fssh_load_hostkeys: fopen /home/user/.ssh/known_hosts2: No such file or directory
debug1: Fssh_load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: Fssh_load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 1.2.3.4 port 22
All this takes like 0 seconds.
I'm having a feeling that something has gotten lost from the server, but the sshd service is running and can be seen with nmap:
Code:
PORT STATE SERVICE
22/tcp open sdserver
Okay with different parameters nmap gave:
Code:
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 9.3 (FreeBSD 20211221; protocol 2.0)
I have tried to connect with several FreeBSD clients and PuTTY. I'm drawing blanks here.
All the clues are appreciated.
-Jukka