ssh不給連hostname但ip可以 - Linux

Table of Contents

學校研究室現在是用Ubuntu,

一直都可以 ssh 帳號@hostname 但是上禮拜開始,連線只能用只可以ssh 帳號@ip

用指令hostname回傳的hostname沒有問題,

但是現在用hostname 連線只會出現:
ssh: connect to host XXXXX port 22: Host is down

我用ssh -v debug,最後一行顯示
connect to address ip.ip.ip.ip port 22: Operation timed out

重點來了,我查研究室電腦的ip,發現最後一個數字(第三個點之後)的
和ssh debug 顯示的不同, 這是表示ssh@hostname指錯ip位置導致無法連線?

如果是的話該如何解決?謝謝!!


--

All Comments

Victoria avatarVictoria2014-08-04
dns問題吧
Carolina Franco avatarCarolina Franco2014-08-08
就dns的問題了...
Margaret avatarMargaret2014-08-13
可將它寫在 /etc/hosts 裡