iT邦幫忙

0

Windows 11 SSH Permission denied (publickey,password)

1833 2023-01-26 15:34:181474 瀏覽
  • 分享至 

  • xImage

版本 Windows 11 專業版
版本 22H2
OS 組建 22621.1105
體驗 Windows Feature Experience Pack 1000.22638.1000.0

以command-prompt及PowerShell用SSH連入Router出現"Permission denied (publickey,password)" 無法正常連入

https://ithelp.ithome.com.tw/upload/images/20230126/20138244MKXJBlT4PX.pnghttps://ithelp.ithome.com.tw/upload/images/20230126/20138244Y3PsbrHoBr.pnghttps://ithelp.ithome.com.tw/upload/images/20230126/20138244l1hQRCknKB.png

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

0
echochio
iT邦高手 1 級 ‧ 2023-01-26 20:18:14

我測試我的可以進入你可加 -vvv 看一下 log
以下是有加 -vvv 打錯密碼的 ....

debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
root@34.126.93.209's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
root@34.126.93.209's password:

打對密碼的

debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 52
debug1: Authentication succeeded (password).
Authenticated to 34.126.93.209 ([34.126.93.209]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting no-more-sessions@openssh.com
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: filesystem full
debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console
debug3: This windows OS supports conpty
debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing
debug3: Successfully set console output code page from:65001 to 65001
debug3: Successfully set console input code page from:950 to 65001
debug3: receive packet: type 80
......

搞不定用 putty 或 pitty 吧
一定要 cmd 下用那去抓 plink (google 一下 putty plink)

0
JamesDoge
iT邦高手 1 級 ‧ 2023-01-28 12:44:01

剛好問過類似的問題
參考看看
https://ithelp.ithome.com.tw/questions/10211690

Kingesys
iT邦新手 5 級 ‧ 2023-02-13 14:30:51
【**此則訊息已被站方移除**】

我要發表回答

立即登入回答