首页 > 其他 > 详细

SSH的加密配置

时间:2021-03-31 14:13:31      阅读:18      评论:0      收藏:0      [点我收藏+]

客户端192.168.200.129

服务器192.168.200.128

 

1服务器

首先在服务器关闭防火墙

临时

>iptables -L  //查看防火墙

>iptables -F //临时关闭防火墙

>iptables -L  //查看防火墙

永久关闭

>getenforce
> chkconfig --list iptables
> chkconfig iptables off
> chkconfig --list iptables
> vi /etc/selinux/config

修改为

SELINUX=disabled


> reboot
> iptables -L
> getenforce

 

2客户端

>ssh-keygen -t rsa -b 2048
> ssh-copy-id root@192.168.200.128
>ssh 192.168.200.128

 >exit 退出

 

3服务端关闭SSh

> vim /etc/ssh/sshd_config
搜索一下三条,将选项改为No
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no
>systemctl restart sshd   重启sshd服务

SSH的加密配置

原文:https://www.cnblogs.com/lingkeer/p/14600918.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!