一.先准备好telnet-server

yum -y install telnet telnet-server xinetd

systemctl enable xinetd 

systemctl enable telnet.socket

systemctl start xinetd

systemctl start telnet.socket

 

二.创建普通用户

useradd test -s /sbin/nologin -M

passwd test

firewall-cmd --add-port=23/tcp --reload

firewall-cmd --reload

用xshell测试是否能成功登陆,如果能,就可以开始升级ssh了。

 

三.升级ssh

./configure  --prefix=/usr/local/ssh && make && make install

启动sshd

/usr/local/ssh/sbin/sshd  (必须用全路径)

 

四:设置环境变量

五:将sshd假如systemctl里面

 

相关文章:

  • 2021-04-19
  • 2021-07-12
  • 2021-11-28
  • 2021-07-14
  • 2021-11-05
  • 2021-07-03
  • 2021-05-20
猜你喜欢
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案