這裏是SSH客戶端的默認連接端口,而不是SSH服務的監聽端口,所以修改/etc/ssh/ssh_config,Port改爲相應端口即可
在SSH本地的時候,會報
ssh_exchange_identification: Connection closed by remote host
修改/etc/hosts.allow,在最後加入
sshd:ALL
即可
這裏是SSH客戶端的默認連接端口,而不是SSH服務的監聽端口,所以修改/etc/ssh/ssh_config,Port改爲相應端口即可
在SSH本地的時候,會報
ssh_exchange_identification: Connection closed by remote host
修改/etc/hosts.allow,在最後加入
sshd:ALL
即可