ingress_helm3_install

Ubuntu 22.04 LTS 发布之后就收到推送了.刚好今天事情不多,就升级了.升级之后发现ssh原来得key用不了.

排查问题发现是openssh8.8默认禁止ssh-rsa加密算法 22.04得默认ssh版本如下

OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022

用一下配置解决rsa问题

cat ~/.ssh/config
Host *
    User root
    IdentityFile ~/.ssh/id_rsa
	#添加下面两行即可
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa

同时有个python脚本在此版本运行也是不能连接(python )

ssh.connect(hostname=hostname, port=port, username=username, pkey=private, timeout=300, disabled_algorithms=dict(pubkeys=['rsa-sha2-256', 'rsa-sha2-512']))

参考 disabled_algorithms=dict(pubkeys=[‘rsa-sha2-256’, ‘rsa-sha2-512’])