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