1. 安裝openssh-server
% yum install openssh-server
2. 查看是否成功安裝openssh-server
% rpm -qa | grep openssh-server
3. sshd_config 設定參數
% vim /etc/ssh/sshd_config
4. 防火牆允許port22服務
% iptables -I INPUT -p tcp --dport 22 -j ACCEPT
5. enable and start the SSH service
% systemctl enable sshd.service
% systemctl start sshd.service
6. restart the SSH Server to activate the configuration
% systemctl restart sshd.service
沒有留言:
張貼留言