Mint 14からWindows Server '08へのSSH - 「権限が拒否されました」

Mint 14からWindows Server '08へのSSH - 「権限が拒否されました」

だから私はServer '08ボックスにSSHを接続するさまざまな方法を試してきました。 FreeSSHDとCygwinを使ってみました。単純なSHAパス認証を使用するとすべてがうまく機能しますが、キーを使用しようとすると次のことが起こります。

  • id_rsa キーが認識されました。
  • パスワードが承認されました
  • ただし、ユーザーのパスワードを要求すると、「許可拒否」エラーが返されます。

端子出力は次のとおりです。

ssh -v -p 22 -i /home/m1ckrz/.ssh/id_rsa [email protected] 
OpenSSH_6.2p2 Ubuntu-6ubuntu0.4, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 10.11.1.22 [10.11.1.22] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /home/m1ckrz/.ssh/id_rsa type -1
debug1: identity file /home/m1ckrz/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2p2 Ubuntu-6ubuntu0.4
debug1: Remote protocol version 2.0, remote software version WeOnlyDo 2.1.3
debug1: no match: WeOnlyDo 2.1.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: RSA f6:cf:a9:fe:42:6e:21:73:84:1e:08:25:b7:b2:5b:38
debug1: Host '10.11.1.22' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: password,publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/m1ckrz/.ssh/id_rsa
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/m1ckrz/.ssh/id_rsa': 
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: password,publickey
debug1: Next authentication method: password
[email protected]'s password: 
debug1: Authentications that can continue: password,publickey
Permission denied, please try again.
[email protected]'s password: 
debug1: Authentications that can continue: password,publickey
Permission denied, please try again.
[email protected]'s password: 
Received disconnect from 10.11.1.22: 2: Too many attempts.

ベストアンサー1

すでに使用しているVerbose-vオプションですssh

また、「非常に詳細な」オプションもあります-vv
ああ、そして「非常に、非常に冗談です」-vvvということは実際にはあまりにも冗談かもしれません!

したがって、実行時に問題が何であるかを理解してください。

ssh -vv -p 22 -i /home/m1ckrz/.ssh/id_rsa [email protected] 2>&1 | less

それ以外の場合は、試してみると-vvv約300行の出力が得られます。

おすすめ記事