FreeBSD更新SSH

2024-01-05
#Unix #FreeBSD #Unix

1. 步骤

  1. 查看系统和 SSH 当前版本:
freebsd-version
# 显示
14.0-RELEASE-p4

ssh -V
# 显示
OpenSSH_9.5p1, OpenSSL 3.0.12  24 Oct 2023
  1. 查看 SSH 位置:
which ssh
# 显示
/usr/bin/ssh
  1. 查询 security/openssh-portable 1得知:
FreeBSD:14:amd64 
latest 9.6.p1_1,1
quarterly 

所以,要配置源 sudo vim /etc/pkg/FreeBSD.conf

  url: "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly",

改为

  url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",

而后,更新源:

pkg update -f
  1. 更新系统
freebsd-update fetch
freebsd-update install
reboot

延伸阅读

  1. FreshPorts – security/openssh-portable: The portable version of OpenBSD’s OpenSSH