[問題] SSH登入卡住

看板Linux作者 (1 2 3 4 疾風炭)時間9年前 (2016/09/30 12:24), 9年前編輯推噓2(2023)
留言25則, 9人參與, 最新討論串1/1
有台機器之前fsck就有掃到壞軌 今天SSH連線的時候又卡住 ssh -v結果: OpenSSH_6.6, OpenSSL 1.0.2h 3 May 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to *** [***.***.***.***] port 22. debug1: Connection established. debug1: identity file /home/kira/.ssh/id_rsa type 1 debug1: identity file /home/kira/.ssh/id_rsa-cert type -1 debug1: identity file /home/kira/.ssh/id_dsa type -1 debug1: identity file /home/kira/.ssh/id_dsa-cert type -1 debug1: identity file /home/kira/.ssh/id_ecdsa type -1 debug1: identity file /home/kira/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/kira/.ssh/id_ed25519 type -1 debug1: identity file /home/kira/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.6 然後就停住了 求解? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.28.197 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1475209443.A.7E1.html

09/30 13:36, , 1F
-vvv 呢?
09/30 13:36, 1F
debug2: ssh_connect: needpriv 0 debug3: Incorrect RSA1 identifier debug3: Could not load "/home/kira/.ssh/id_rsa" as a RSA1 public key 只有多這三行 卡在一樣的地方

09/30 13:42, , 2F
壞軌先修好再來求解
09/30 13:42, 2F

09/30 14:43, , 3F
壞軌已經修好了
09/30 14:43, 3F
※ 編輯: kira925 (140.113.28.197), 09/30/2016 14:46:00

09/30 15:33, , 4F
/home/kira/.ssh/id_rsa <- 檔案內容讀得到嗎?
09/30 15:33, 4F

09/30 16:46, , 5F
看起來檔案壞了
09/30 16:46, 5F

09/30 21:10, , 6F
讀的到 這個是因為我用別的帳號去登入所以他驗不到
09/30 21:10, 6F

09/30 21:11, , 7F
....不過換用本帳好像也有問題....這邊的訊息是遠端還是
09/30 21:11, 7F

09/30 21:11, , 8F
本機的~/.ssh/id_rsa?
09/30 21:11, 8F

09/30 22:45, , 9F
本機的
09/30 22:45, 9F

10/01 01:04, , 10F
ssh-keygen -y -f /home/kira/.ssh/id_rsa 還能正常解出至
10/01 01:04, 10F

10/01 01:05, , 11F
金鑰內容嗎?
10/01 01:05, 11F

10/01 01:05, , 12F
*不要貼出來,單純只是問那個檔案是真的死掉還怎樣...
10/01 01:05, 12F

10/01 01:26, , 13F
因為確定前幾天還可以正常連線 應該是正常的...?
10/01 01:26, 13F

10/01 01:27, , 14F
我是猜遠端有問題 但是連不上也無法排除...
10/01 01:27, 14F

10/01 01:35, , 15F
但是錯誤就已經跟你說是本機那個檔案爛了啊.....
10/01 01:35, 15F

10/02 11:46, , 16F
@Hevak 可以解出來阿
10/02 11:46, 16F

10/02 11:48, , 17F
另外換成不同的帳號也一樣 不是只有一個帳號...
10/02 11:48, 17F

10/02 11:48, , 18F
...今天突然又好了
10/02 11:48, 18F

10/02 13:10, , 19F
呃....
10/02 13:10, 19F

10/02 18:45, , 20F
主機上的乖乖被吃掉了(?
10/02 18:45, 20F

10/02 20:51, , 21F
dmesg有些東西 但與這個應該無關...
10/02 20:51, 21F

10/03 00:18, , 22F
這真的是巫術了 還是有人知道其實這幾天 ssh 有啥更動(攤手
10/03 00:18, 22F

10/03 00:30, , 23F
推乖乖被吃掉了 XD
10/03 00:30, 23F

10/03 00:50, , 24F
要不要跑memtest看看
10/03 00:50, 24F

10/03 02:04, , 25F
恩....之後來跑...
10/03 02:04, 25F
文章代碼(AID): #1NxUZZVX (Linux)
文章代碼(AID): #1NxUZZVX (Linux)