我試圖通過SSH連接到我的遠程服務器。但由於代理限制,這是不可能的,因爲eth0被用作默認值。可以指定interfase到ssh命令嗎?
但我有我自己的互聯網網關wlan0接口。
我如何指定使用wlan0,而不是eth0到我的openssh客戶端?
我嘗試以下,並且它不起作用:
:~$ ssh -v 176.111.109.0
OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /home/unmanner/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 176.111.109.0 [176.111.109.0] port 22.
debug1: connect to address 176.111.109.0 port 22: Connection refused
ssh: connect to host 176.111.109.0 port 22: Connection refused
我也試過 「綁定」 選項是這樣的:
:~$ ssh -v -b 172.20.10.6 176.111.109.0
OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /home/unmanner/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 176.111.109.0 [176.111.109.0] port 22.
debug1: connect to address 176.111.109.0 port 22: Connection timed out
ssh: connect to host 176.111.109.0 port 22: Connection timed out
其中 「172.20.10.6」 - IP地址,該地址連接在wlan0上。
如果我拔掉以太網電纜 - 一切正常!但我想有兩種接口的可能性。
謝謝!
你爲什麼不添加路由到'176.111.109.0'通過'wl0'? – Tuxdude 2013-03-05 06:03:02