我试图通过 ssh 连接到我的远程服务器。但是由于代理限制,这是不可能的,因为 eth0 被用作默认值。
但我有 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” - 连接在 wlan0 上的 IP 地址。
如果我拔下以太网电缆 - 一切正常!但我希望有可能同时使用这两个接口。
谢谢!