酷!學園

技術討論區 => Linux 討論版 => 主題作者是: jjchiou 於 2019-07-15 09:55

主題: ssh login 認證加密問題
作者: jjchiou2019-07-15 09:55
我有三台VM ,分別是db1 , db2 , db3 ,  db3除了db1可以ssh 進db3外,其它如ubuntu也不行,請問是什麼原因,我想是認證加密方式所導致,但是不知如何解決

db1
[jjchiou@db1 ~]$ cat .ssh/known_hosts
db3,172.17.128.110 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKaJayQkBIk223ZehYeTsYonHXhuUFCwoCCOsKaXlpDE6UAHacwuTncGae4EOabY0UkvyWfbe9xi0c68H2ltYcU=

db2
[jjchiou@db2 ~]$ cat .ssh/known_hosts
cat: .ssh/known_hosts: 沒有此一檔案或目錄

jjchiou@ubuGNS3:~$ cat .ssh/known_hosts
|1|u2H1+6BxlEKX28/YyXeydazvIF8=|4qIMxItokz9xWvBsefoamr+NrpY= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKaJayQkBIk223ZehYeTsYonHXhuUFCwoCCOsKaXlpDE6UAHacwuTncGae4EOabY0UkvyWfbe9xi0c68H2ltYcU=
|1|Dxc+E98IYnwDoewtLopfb9CPQgo=|LWbt5Y4xYtaeTR2sKaOdvqOfGtc= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKaJayQkBIk223ZehYeTsYonHXhuUFCwoCCOsKaXlpDE6UAHacwuTncGae4EOabY0UkvyWfbe9xi0c68H2ltYcU=
|1|nU1HLaCG7Mm5ukk1Au+KyBSeDr4=|Y0kv4N+86IE0kkWXEyR1j5CGid4= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKaJayQkBIk223ZehYeTsYonHXhuUFCwoCCOsKaXlpDE6UAHacwuTncGae4EOabY0UkvyWfbe9xi0c68H2ltYcU=
|1|9i+iN5LOJM8iiNH2eUdHqzqLAJo=|vgpmVIr7bHUrDjbBt3CkapCOxjo= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKaJayQkBIk223ZehYeTsYonHXhuUFCwoCCOsKaXlpDE6UAHacwuTncGae4EOabY0UkvyWfbe9xi0c68H2ltYcU=
主題: Re: ssh login 認證加密問題
作者: netman2019-07-16 20:38
有具體的錯誤訊息或log嗎?
主題: Re: ssh login 認證加密問題
作者: jjchiou2019-07-17 10:27
就是ssh 後連不上,然後顯示time out ,在log檔有看到底下訊息

Jul 22 09:34:06 db3 journal: failed to call gs_plugin_refresh on shell-extensions: [*/*/*/source/shell-extensions/*] failed to download https://extensions.gnome.org//static/extensions.json: Cannot resolve hostname
主題: Re: ssh login 認證加密問題
作者: jjchiou2019-07-23 09:06
雖然把開機level改成level 3 multi-users ,已經解決這問題 ,不開GUI ,但是還是很好奇Gnome為什麼會參與ssh 登入認證,還要call 這段jason碼,但是這段碼是可以下載的,不知錯誤為何?