Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
update 24.1.10 kills ssh
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: update 24.1.10 kills ssh (Read 1830 times)
siegfried
Newbie
Posts: 26
Karma: 3
update 24.1.10 kills ssh
«
on:
July 11, 2024, 04:03:42 pm »
no ssh connection possible after updating via GUI, disabling and re-eabling via GUI ssh solves the problem. I think starting update by ssh is this time a bad idea.
At the 2nd box same issue: updating using ssh, logoff and ssh is no longer connecting. Open a shell before logoff and "service openssh onerestart" solves this.
«
Last Edit: July 11, 2024, 04:20:07 pm by siegfried
»
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: update 24.1.10 kills ssh
«
Reply #1 on:
July 11, 2024, 04:10:07 pm »
There's very little information here. Not sure why this OpenSSH update would appear any different.
Cheers,
Franco
Logged
siegfried
Newbie
Posts: 26
Karma: 3
Re: update 24.1.10 kills ssh
«
Reply #2 on:
July 11, 2024, 04:19:18 pm »
The key is regenerated:
unknown key type dsa
Generating public/private rsa key pair.
Your identification has been saved in /usr/local/etc/ssh/ssh_host_rsa_key
Your public key has been saved in /usr/local/etc/ssh/ssh_host_rsa_key.pub
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: update 24.1.10 kills ssh
«
Reply #3 on:
July 11, 2024, 04:21:50 pm »
Probably related to
https://github.com/opnsense/core/commit/0f86d8a06c
which wasn't moved to stable for risk of regression, but I see now they meant to disable DSA meaning to disable accepting the config parser input -.-
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: update 24.1.10 kills ssh
«
Reply #4 on:
July 11, 2024, 04:23:40 pm »
PS: "service openssh onerestart" is really not a good way to deal with this
Logged
Alpha_DE
Newbie
Posts: 22
Karma: 1
Re: update 24.1.10 kills ssh
«
Reply #5 on:
July 11, 2024, 04:26:33 pm »
I see the same issue after upgrading to 24.1.10
kex_exhange_identification: Connection closed by remote host.
Luckily I could access the console via Proxmox and after reloading all services, ssh did work again.
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: update 24.1.10 kills ssh
«
Reply #6 on:
July 11, 2024, 04:27:00 pm »
I think this is about presence of an old DSA key, but I'm not sure why it would start breaking at runtime unless it reads the config file on each connect and fails due to having removed the parser support for DSA keys causing a configuration error. That would be pretty stupid.
Cheers,
Franco
Logged
siegfried
Newbie
Posts: 26
Karma: 3
Re: update 24.1.10 kills ssh
«
Reply #7 on:
July 11, 2024, 04:36:42 pm »
Quote from: franco on July 11, 2024, 04:23:40 pm
PS: "service openssh onerestart" is really not a good way to deal with this
that may be, what would be the better way?
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: update 24.1.10 kills ssh
«
Reply #8 on:
July 11, 2024, 04:37:51 pm »
I'm trying to find out what the actual issue is now... brb
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: update 24.1.10 kills ssh
«
Reply #9 on:
July 11, 2024, 04:50:35 pm »
Restarting from the GUI or console works... or reboot the whole box. Console restart is:
# pluginctl -s openssh restart
It doesn't look related to our changes or DSA then... just the binary update of /usr/local/sbin/sshd that causes the active connection listener to fail to spawn a child process?
Cheers,
Franco
Logged
siegfried
Newbie
Posts: 26
Karma: 3
Re: update 24.1.10 kills ssh
«
Reply #10 on:
July 11, 2024, 05:07:04 pm »
Choosing menu item 11 (restart all services) after updating seems also to works
So happy updating
Thanks, Franco.
Siegfried
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: update 24.1.10 kills ssh
«
Reply #11 on:
July 11, 2024, 05:14:00 pm »
Ok I debugged this by switching binaries... which leads to this error: "-R not supported here"
https://gitlab.archlinux.org/archlinux/packaging/packages/openssh/-/issues/5
Logged
grufo
Newbie
Posts: 3
Karma: 0
Re: update 24.1.10 kills ssh
«
Reply #12 on:
July 16, 2024, 06:22:51 am »
to restart ssh via gui: System/Diagnostic/Services - openssh and restart...
Logged
Patrick M. Hausen
Hero Member
Posts: 6797
Karma: 571
Re: update 24.1.10 kills ssh
«
Reply #13 on:
July 16, 2024, 08:30:25 am »
Don't you guys reboot your systems after an update?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Yorick
Newbie
Posts: 1
Karma: 0
Re: update 24.1.10 kills ssh
«
Reply #14 on:
July 16, 2024, 11:50:06 am »
We do restart our opnsense boxes after update, through SSH...
Have had this issue on 3/3 opnsense that were updated through Ansible via SSH so far, and much more to come.
The fix being to login to the GUI and restart openssh service.
But yeah it would be nice if that wasn't necessary.
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
update 24.1.10 kills ssh