scp远程传输文件时发现报
ssh_exchange_identification: Connection closed by remote host
尝试ssh报相同的错误,首先telnet 22端口排除防火墙问题。
查看/etc/hosts.allow配置文件,看是否设置了白名单。
cat /etc/hosts.allow
sshd:10.1.22.13:allow
果然做了限制,将 sshd:10.1.22.13:allow
改为sshd: ALL
或者添加需要ssh的IP即可。