2017-06-05 97 views
0

情景......我可以通過SSH連接數字海洋液滴連接家庭網絡,但不是在工作網絡

WiFi網絡家園=可連接與我的數字海洋服務器通過SSH罰款; WiFi網絡工作=無法通過SSH與我的Digital Ocean服務器連接;

WiFi網絡工作SSH調試:

OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 19: Applying options for * 
debug2: ssh_connect: needpriv 0 
debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22. 
debug1: connect to address xxx.xxx.xxx.xxx port 22: Connection timed out 
ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection timed out 

有人嗎?

+0

也許你的僱主在他們的防火牆上有一些限制性的出口過濾器。你有沒有嘗試過SSH到不同的服務器? – madebydavid

回答

0

嘗試檢查與NC

nc -zvw4 your_host 22 

如果不開 - 大概22口網絡中不允許的,你可以問您的網絡管理員它

您的服務器上做向前,從443到22通過iptables,例如:

iptables -t nat -I PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 22 
+0

在端口443上啓動ssh更容易。 – pynexj

+0

如果443未用於Web服務器並嘗試使用-p 443 ssh -p 443 your_host' 如果443已經使用 - 嘗試重定向到某個高編號的端口,如4444 – aka

+0

ssh_exchange_identification:由遠程主機關閉的連接 – luiza