Re: [公告] PTT SSH RSA 金鑰更換

看板 SYSOP
作者 asdfghjklasd (最討厭群組拉人不先問)
時間 2024-10-09 13:39:31
留言 15 ( 4推 0噓 11→ )
回文 2則
解決方式 在 .ssh/config 加 Host * KexAlgorithms curve25519-sha256@libssh.org 就可以 ssh bbsu@bbs.ptt.cc ssh -vvv log 如下 OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 58: Applying options for * debug2: resolving "bbs.ptt.cc" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to bbs.ptt.cc [140.112.172.11] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_rsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.4 debug1: Remote protocol version 2.0, remote software version bbs-sshd debug1: no match: bbs-sshd debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to bbs.ptt.cc:22 as 'bbsu' debug3: send packet: type 20 debug1: SSH2_MSG_KEXINIT sent debug3: receive packet: type 20 debug1: SSH2_MSG_KEXINIT received debug2: local client KEXINIT proposal debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,ext-info-c debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: compression ctos: none,zlib@openssh.com,zlib debug2: compression stoc: none,zlib@openssh.com,zlib debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug2: peer server KEXINIT proposal debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group16-sha512,diffie-hellman-group14-sha256,ext-info-s,kex-strict-s-v00@openssh.com debug2: host key algorithms: ssh-ed25519,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr debug2: MACs ctos: hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-sha1-etm@openssh.com,hmac-sha1 debug2: MACs stoc: hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-sha1-etm@openssh.com,hmac-sha1 debug2: compression ctos: none debug2: compression stoc: none debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: kex: curve25519-sha256 need=64 dh_need=64 debug1: kex: curve25519-sha256 need=64 dh_need=64 debug3: send packet: type 30 debug1: expecting SSH2_MSG_KEX_ECDH_REPLY 麻煩站方再看一下,要怎設定才能連. ※ 引述《wens (文思)》之銘言: : 由於批踢踢 SSH 原先使用的 RSA 金鑰長度已不符現今最短長度要求,因此予以更換。 : 以下為新的 RSA 金鑰的指紋: : 3072 SHA256:9/gkjxWjuteMj//K0sRo1gj7h5qTp0HPIH3n7+e3Jqc root@ptt.cc (RSA) : +---[RSA 3072]----+ : | | : | | : | | : | .. | : | . Soo=+ | : | o.*=*+o | : | .=*B= | : | o+BX=o oo| : | *Bo=BEO++| : +----[SHA256]-----+ : 同時並將現行 SSH 金鑰指紋登載於 DNS SSHFP 紀錄。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 158.101.145.243 (日本) ※ 文章網址: https://www.ptt.cc/bbs/SYSOP/M.1728452373.A.180.html

回文

[公告] PTT SSH RSA 金鑰更換
2 13 sysop wens
2024-10-05 20:51:06
Re: [公告] PTT SSH RSA 金鑰更換
4 15 sysop asdfghjklasd
2024-10-09 13:39:31

留言

wens 阿你的 SSH 還在 7.4? 10/09 21:22 1F
wens 看不出問題在哪,就看起來停住了 10/09 21:37 2F
yvb 我的版本更舊, 但用起來正常... 10/09 22:17 3F
yvb OpenSSH_7.2p2, OpenSSL 1.0.1 14 Mar 2012 10/09 22:17 4F
asdfghjklasd 我9.9p1 的也不行. 10/09 22:34 5F
yvb googleexpecting SSH2_MSG_KEX_ECDH_REPLY 10/09 23:31 6F
yvb 試試看是否其中是有方式可以解決這問題. 10/09 23:32 7F
asdfghjklasd 我有google 過試過蠻多方式 10/10 09:09 8F
asdfghjklasd 現在用xshell 直連 10/10 09:09 9F
a123453906 我也是卡一樣地方 10/10 12:28 10F
a123453906 ssh -o KexAlgorithms=curve25519- 10/10 12:28 11F
a123453906 sha256 bbsu@ptt.cc 10/10 12:28 12F
a123453906 後來加上這個就能連了 10/10 12:29 13F
asdfghjklasd 我加上也可以了.感謝分享 10/10 21:48 14F
※ 編輯: asdfghjklasd (140.238.52.217 日本), 10/10/2024 21:52:04
yvb 看來是 CentOS 才有這樣的問題. 10/15 19:17 15F

最新文章

[開箱] PS5 Pro 30週年版
c_chat buyao531
2024-11-22 03:58:31
[蔚藍] 陽奈雜圖
c_chat alexander1
2024-11-22 03:48:45
[24秋] 再見龍生 你好人生 08
c_chat saberthebest
2024-11-22 03:08:39
Re: [閒聊] 跟AZKi一起開車
c_chat bugzilla
2024-11-22 03:08:37
[閒聊] LoveLive音樂劇 Drama 01
c_chat yrokuh
2024-11-22 02:31:02
[閒聊] 壞蛋聯盟2 預告
2 3 c_chat arsl400
2024-11-22 02:26:54
[請神] 想找篇特殊題材的NTR本
5 9 ac_in rty745698
2024-11-22 02:07:08
[問題] 京子跟小春誰人氣比較高
9 13 c_chat kororodx
2024-11-22 01:56:02
[劍星] 拍照模式 金亨泰我的超人
8 12 c_chat tiandai
2024-11-22 01:42:59
[24秋] 膽大黨08 水怪一眼真哥吉拉
4 7 c_chat mayolane
2024-11-22 01:28:55