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/m.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燈, 水草

請輸入看板名稱,例如:e-shopping站內搜尋

TOP