ssh 連線問題 - Linux

Table of Contents

我網路不熟所以上來問一下

我有AB兩台桌機

A桌機ip是DHCP 取得, ip不是實體ip
B桌機 用pppoe 取得 ip 實體浮動ip

那我想用ssh透過桌機連到 raspberry pi 板子, 板子也是用pppoe 取得實體浮動IP

A桌機無法透過ssh 連到板子會卡住 , 但是B桌機可以順利連上板子

下面是ssh 訊息

ssh -vvv [email protected]
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "175.180.118.217" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 175.180.118.217 [175.180.118.217] port 22.
debug1: Connection established.
debug1: identity file /home/shihyu/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/shihyu/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/shihyu/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/shihyu/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/shihyu/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/shihyu/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/shihyu/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/shihyu/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1

這樣可能是什麼原因造成?

謝謝

--

All Comments

Connor avatarConnor2017-02-09
你的A可以ping得到pi嗎?
Skylar Davis avatarSkylar Davis2017-02-13
可以ping 板子~但用ssh 就是連不上,XD
Doris avatarDoris2017-02-16
A主機裡面有ssh的key嗎?
Caroline avatarCaroline2017-02-20
兩台主機都沒真的用key 認證登入~還是要輸入密碼
不過A主機前面就卡死~無法到輸入密碼階段
Xanthe avatarXanthe2017-02-21
你可能要先確認一下網路架構
Victoria avatarVictoria2017-02-22
DNS 反查的問題嗎? 試試等 10 秒可不可以連上.
Ula avatarUla2017-02-23
請問網路架構是只什麼?我是從IP分享器接出來...
Mary avatarMary2017-02-24
A桌機吃分享器DHCP, B桌機跟板子也是從分享器接出來只是
用PPPOE 取得浮動IP...20秒也還是卡住XD
Ina avatarIna2017-02-27
這樣網路架構有形成一個迴路嘛?
Ina avatarIna2017-02-27
接分享器後面,dhcp client 有關掉嗎?
Michael avatarMichael2017-03-03
Andy avatarAndy2017-03-05
有點好奇是怎麼辦到的?
Ursula avatarUrsula2017-03-09
我ip分享器有啟動 啟用 PPPoE Relay , 所以可以同時用
pppoe 取得浮動ip
Necoo avatarNecoo2017-03-10
我分享器是ASUS RT-N18U
Isabella avatarIsabella2017-03-12
我猜 A 跟 P1 都同時拿到 private 跟 public IP, 看一
下 default gateway 是哪一個.
Iris avatarIris2017-03-14
那個ssh訊息是A的還是B的?
Hardy avatarHardy2017-03-14
是A桌機dchp 卡住訊息
Agnes avatarAgnes2017-03-19
我ifconfig -a 只看到一組 pppoe實體ip.沒有priveate ip
Kyle avatarKyle2017-03-21
你 traceroute 看一下結果?
Hedy avatarHedy2017-03-21
telnet <Raspberry Pi IP> 22 有結果嗎?
Tracy avatarTracy2017-03-26
http://0rz.tw/y60je AB兩主機 tracerote 結果
Eartha avatarEartha2017-03-28
telnet 登入方式一樣是dhcp 不行, pppoe 主機可以登入pi
Tristan Cohan avatarTristan Cohan2017-03-30
嗯…其實我只是想看telnet 22port會不會有server端的回應
Rosalind avatarRosalind2017-04-04
e.g. SSH-2.0-OpenSSH_6.7p1 Raspbian-5+deb8u3
Agnes avatarAgnes2017-04-04
traceroute看起來很正常的說…
Sarah avatarSarah2017-04-05
key砍掉連線看看
Olivia avatarOlivia2017-04-08
~/.ssh 裡面砍光還是卡住, 我覺的是網路架構問題..XD
Lydia avatarLydia2017-04-09
但是我網路基礎很薄弱XD.. 或是我IP 分享器哪邊有問題
Leila avatarLeila2017-04-10
這種都需要現場看吧,找會的幫忙看看
Quanna avatarQuanna2017-04-13
正常可以連上的B主機, ssh -vvv 的輸出又是如何?
Zanna avatarZanna2017-04-15
http://0rz.tw/iQopL 這是可以的B 主機ssh -vvv
Anonymous avatarAnonymous2017-04-15
真奇怪. 三台 (A, B, RPi) 的 ifconfig, route 情況各是如何?
Joe avatarJoe2017-04-20
分別從 A, B 做 telnet 175.180.118.217 22 會看到什麼?
Kristin avatarKristin2017-04-21
另外, 可以在RPi上, 用 tcpdump 之類, 監聽連線的網路封包嗎?
Gilbert avatarGilbert2017-04-25
http://0rz.tw/PgKtC 三台 的 ifconfig, route
Aaliyah avatarAaliyah2017-04-27
http://0rz.tw/CJvIu // A,B 到 pi 透過telnet 訊息
Damian avatarDamian2017-04-29
tcpdump 要怎麼在pi 使用監聽 A or B 連線?
Dinah avatarDinah2017-05-02
用 toolchain 編出 tcpdump 執行檔, 然後丟上去執行, 不行嗎?
Jacob avatarJacob2017-05-03
看起來似乎有什麼特別的防火牆設定, 或真是IP分享器怪怪的?
Megan avatarMegan2017-05-06
那可以改成A桌機用PPPOE上網,B桌機用DHCPC連連看嗎