sudo apt update
sudo apt install --only-upgrade openssh-server
sudo systemctl restart ssh
sshd -V
ssh -V
注意:若需配置SFTP用戶權限,可參考/etc/ssh/sshd_config中Subsystem sftp internal-sftp相關設置。更新前建議備份重要數據。
/etc/ssh/sshd_config
Subsystem sftp internal-sftp