FreeBSD 板


LINE

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 -- v OpenSSH_10.0p2, OpenSSL 3.0.20 7 Apr 2026 usage: sshd [-46DdeGiqTtV] [-C connection_spec] [-c host_cert_file] [-E log_file] [-f config_file] [-g login_grace_time] [-h host_key_file] [-o option] [-p port] [-u len] root@mail:~ # freebsd-version -ku 14.4-RELEASE-p5 14.4-RELEASE-p5 root@mail:~ # uname -a FreeBSD mail.abc.com 14.4-RELEASE-p5 FreeBSD 14.4-RELEASE-p5 GENERIC amd64 root@mail:~ # 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. root@mail:~ # /usr/sbin/sshd -v sshd: illegal option -- v OpenSSH_10.0p2, OpenSSL 3.0.16 11 Feb 2025 usage: sshd [-46DdeGiqTtV] [-C connection_spec] [-c host_cert_file] [-E log_file] [-f config_file] [-g login_grace_time] [-h host_key_file] [-o option] [-p port] [-u le[A 14.4-RELEASE-p5 之前没问题, 最近要更新的注意一下. 如果 /tmp/bsdbase 不能删除,则要做以下处理 root@dns1:/tmp # rm -rf bsdbase/ rm: bsdbase/var/empty: Operation not permitted rm: bsdbase/var: Directory not empty rm: bsdbase/usr/bin/chpass: Operation not permitted rm: bsdbase/usr/bin/su: Operation not permitted rm: bsdbase/usr/bin/crontab: Operation not permitted rm: bsdbase/usr/bin/login: Operation not permitted rm: bsdbase/usr/bin/passwd: Operation not permitted rm: bsdbase/usr/bin: Directory not empty rm: bsdbase/usr: Directory not empty rm: bsdbase/sbin/init: Operation not permitted rm: bsdbase/sbin: Directory not empty rm: bsdbase/libexec/ld-elf.so.1: Operation not permitted rm: bsdbase/libexec/ld-elf32.so.1: Operation not permitted rm: bsdbase/libexec: Directory not empty rm: bsdbase/lib/libc.so.7: Operation not permitted rm: bsdbase/lib/libcrypt.so.5: Operation not permitted rm: bsdbase/lib/librt.so.1: Operation not permitted rm: bsdbase/lib/libthr.so.3: Operation not permitted rm: bsdbase/lib: Directory not empty rm: bsdbase/: Directory not empty root@dns1:/tmp # ls -lo bsdbase/sbin/init -r-xr-xr-x 1 root wheel schg,uarch 1236656 Mar 6 18:34 bsdbase/sbin/init root@dns1:/tmp # chflags -R noschg bsdbase/ root@dns1:/tmp # rm -rf bsdbase/ root@dns1:/tmp # --



※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.238.52.217 (日本)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/FreeBSD/M.1781895350.A.FF7.html ※ 编辑: asdfghjklasd (140.238.52.217 日本), 06/21/2026 23:37:00 ※ 编辑: asdfghjklasd (140.238.52.217 日本), 06/24/2026 23:55:25 ※ 编辑: asdfghjklasd (140.238.52.217 日本), 06/27/2026 16:39:37







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:BuyTogether站内搜寻

TOP