Single

Ubuntu 22.04在线升级注意事项

1.某些云服务商使用自定义镜像源,在直接使用在线更新时会被禁用,需要使用下列命令更新:

RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade

2.新版搭载的OpenSSH软件包默认已拒绝rsa-sha1算法生成的密钥,请提前配置sha2密钥,如:

ssh-keygen -t rsa-sha2-512 -b 4096

如果您无法在本地计算机上更改任何内容,或者不想使用新密钥,并且希望在本地计算机上重新启用RSA,请在远程计算机上编辑文件/etc/ssh/sshd_config并添加以下行:

HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

这将允许使用您已经拥有的不安全RSA密钥。

请记住通过以下方式重新启动sshd服务:

sudo systemctl restart sshd

否则,您必须重新启动计算机才能使更改生效。

 

 

暂无评论

发表评论

Warning: Undefined variable $user_ID in /www/wwwroot/wiki/wp-content/themes/boxmoe-dove--master/comments.php on line 49

Warning: Undefined variable $user_ID in /www/wwwroot/wiki/wp-content/themes/boxmoe-dove--master/comments.php on line 72

Warning: Undefined variable $user_ID in /www/wwwroot/wiki/wp-content/themes/boxmoe-dove--master/comments.php on line 107