删除旧版本:
dpkg --list|grep ssh
apt remove ssh
wget https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.2p1.tar.gz
tar xzvf openssh-9.2p1.tar.gz
cd openssh-9.2p1
#下载依赖
#开始编译安装
./configure && make && make install
#完成后在root上su -一下然后看下ssh版本
su
ssh -V
出现如下错误:
zlib.h missing - please install first or check config.log
解决方案:
apt-get install zlib1g-dev libssl-dev
登录:
SSH ljg@192.168.170.133
登陆时出现如下错误:
ED25519 key fingerprint is SHA256:CwkFyRFRg6hWLSWshpXnkJOgUPVPzp7V5v4pxQKa9NA.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.192.128' (ED25519) to the list of known hosts.
此时,一定要输入"yes",务必注意!