参考

1.系统环境:CentOS Linux release 7.7.1908 (Core)
2.ssh 版本:OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
3.禁止scp
3.1 rpm -qa|grep openssh-*
3.2 yum remove openssh-clients -y
4.重启sshd服务
systemctl restart sshd.service
 
5. 禁止sftp服务
5.1 修改sshd配置文件 /etc/ssh/sshd.config
5.2 vi /etc/ssh/sshd.config
5.3 将  # Subsystem sftp /usr/libexec/openssh/sftp-server  信息前面加上"#"
6.重启sshd服务
  systemctl restart sshd.service

查看ssh版本

[root@T_SPM-SPMN-testdb2 scm]# ssh -V                                                                       
OpenSSH_8.4p1, OpenSSL 1.1.1h  22 Sep 2020                     

卸载scp

[root@T_SPM-SPMN-testdb2 scm]# rpm -qa|grep openssh-*                                                       
[root@T_SPM-SPMN-testdb2 scm]# yum remove openssh-clients -y 
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:23 天前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐