Linux 基础与应用教程0010 (ssh2)
1.改ssh2端口
1. ssh 192.168.130.28
2.vi /etc/ssh/sshd_config
3.service sshd restart
4.service iptables stop
2.
秘钥加密
1. iptables -F
2.iptables -X
3.iptables -P INOUT DROP
4.iptables -P FORWARD DROP
5.iptables -P OUTPUT ACCEPT
6.iptables -A INPUT -p tcp --dport 22 -j ACCEPT
7.iptables -A INPUT -p tcp --dport333 -j ACCEPT
查看详情 iptables -L -n
8.service iptables save
9.service iptables restart
删除
10.iptables -L --line-numbers -n
11.iptables -D INPUT 2
12.service iptables save
13.service iptables restart
http://vdisk.weibo.com/s/C6SfyQNOZSCL0
http://www.51xuediannao.com
This moment will nap, you will have a dream; but this moment study, you will interpret a dream.