[閒聊] FreeBSD 14.4 update p6 sshd 會不見

作者: asdfghjklasd (好累的大一生活)   2026-06-20 02:55:38
update 24 Jun 2026 :
今天我升另一台 FreeBSD 14.4 到 p6 就沒問題,看起來有修護?
update 27 Jun 2026 :
今天 FreeBSD 14.4 到 p6 又 sshd 消失了
freebsd-update fetch & install 後,版本為 freebsd 14.4 p6
跑完 install 後會有
Installing updates...install: ///usr/src/tests/sys/kern/tty: No such file or directory
Restarting sshd after upgrade
Performing sanity check on sshd configuration.
Stopping sshd.
Waiting for PIDS: 910.
Performing sanity check on sshd configuration.
Starting sshd.
/usr/libexec/sshd-auth does not exist or is not executable
/etc/rc.d/sshd: WARNING: failed to start sshd
done.
這時重開就沒 sshd 了,若是實體機沒 IPKVM 或者人不在面前,那就..
因為改呼叫 /usr/libexec/sshd-auth ,但升級後又沒有.
10.0p2
root@WEB-2026:/usr/ports/www/apache24 # ps uax | grep ssh
root 1538 0.0 0.0 25284 10208 - Is 00:56 0:00.01
sshd: /usr/sbin/sshd [listener] 0 of 10-100
root 2288 0.0 0.0 25792 12312 - Is 01:03 0:00.02
sshd-session: abc [priv] (sshd-session)
abc 2291 0.0 0.0 28352 13088 - S 01:04 0:01.31
sshd-session: abc@pts/0 (sshd-session)
9.9
root@dns1:~ # ps aux | grep sshd
root 798 0.0 0.0 23508 4428 - Ss 10May26 0:00.35
sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups (sshd)
root 90192 0.0 0.1 24040 10192 - Is 02:41 0:00.02
sshd-session: abc [priv] (sshd-session)
abc 90195 0.0 0.1 24040 10484 - S 02:42 0:00.04
sshd-session: abc@pts/0 (sshd-session)
8.8
root@web:/tmp # ps aux | grep ssh
root 771 0.0 0.1 21096 8204 - Is Sat17 0:00.09
sshd: /usr/sbin/sshd [listener] 0 of 10-10
root 19328 0.0 0.1 21536 9676 - Is 23:07 0:00.02
sshd: abc [priv] (sshd)
abc 19331 0.0 0.1 21536 9936 - S 23:07 0:01.26
sshd: abc@pts/0 (sshd)
補救方法,非官方
down base
cd /tmp
mkdir bsdbase
cd bsdbase
wget https://download.freebsd.org/releases/amd64/amd64/14.4-RELEASE/base.txz
tar -xvJf base.txz
cd /tmp/bsdbase/usr/sbin
cp sshd /usr/sbin
cd /tmp/bsdbase/usr/libexec
cp sshd-* /usr/libexec/
/usr/sbin/sshd
telnet 0 22
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
SSH-2.0-OpenSSH_10.0 FreeBSD-20250801
quit
Invalid SSH identification string.
Connection closed by foreign host.
從 base.txz 放回去就是 10.0p2 了
[root@mail ~]# /usr/sbin/sshd -v
sshd: illegal option

Links booklink

Contact Us: admin [ a t ] ucptt.com