z最近扫描出ssh版本太低, yum update已经可以解决, 升到了7.4
但是看到网上说, 版本更新到8.0以上才可能解决问题, 于是编译安装ssh 8
./configure --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh
make
make install
init 6
然后傻眼了, vnc连不上了. ssh还好, 版本确实升上来了, 到了8.2
于是解决之
重新安装桌面, 重新安装vnc
# yum groups -y remove "GNOME Desktop" # yum groups -y install "GNOME Desktop"
yum install -y xrdp tigervnc-server
vncserver :1
vim /usr/lib/systemd/system/xrdp.service
-p 3389
stemctl daemon-reload
systemctl restart xrdp
# systemctrl restart xrdp
还是不行,
报错:
(imsettings-check:7384): IMSettings-WARNING **: 14:05:06.355: Could not connect: Connection refused (imsettings-check:7384): GLib-GIO-CRITICAL **: 14:05:06.355: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed ** (process:7285): WARNING **: 14:05:06.529: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect: Connection refused
搜了 一下, 说是 annaconda的path问题, 于是一顿找. annaconda是安装过, 但忘了把路径写到哪个文件了.
自己挖的坑, 找到, 删掉. 因为现在已经在使用miniconda, 比annaconda简单好用.
远程一下, 终于进去了.
想要跟同事炫耀一下ssh的8.2版本. 一看傻了,,,, 版本又回来了. 因为在删除desktop重装的时候, 又装回了7.4....
继续折腾
最后, 终于出来想要的:
OpenSSH_8.2p1, OpenSSL 1.0.2k-fips 26 Jan 2017
纪念一下.
https://www.tecmint.com/install-openssh-server-from-source-in-linux/
https://www.cyberciti.biz/faq/centos-ssh/
写得不错