关闭防火墙
[root@localhost ~]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
如果此时无法使用scp命令,可以使用以下命令检测是否安装openssh
# rpm -qa |grep openssh
如果没有出现包含了openssh client,openssh server,及openssh3个公共组件则说明安装不全或者没有安装,需要重新安装或者局部安装。
1.安装局部
#yum install -y openssh-clients
2.安装全局
#yum install -y openssh