特定のコンピュータでSSH経由で接続すると、権限が拒否されました。

特定のコンピュータでSSH経由で接続すると、権限が拒否されました。

マシンBI(IPマシンAと呼びましょう)で実行すると接続できます。 Cマシンでも接続できます。ssh [email protected]

他のコンピュータ(Dコンピュータ)で実行した場合Permission denied, please try again

なぜこれですか?

メモ。次のセッションを試みる前に各セッションを終了しました。すべてのコンピュータは同じネットワーク上にあります。 (実際、4つのVMはすべて同じホスト上にあります。)すべてのコンピュータでコンピュータAをpingできます。キーファイルの代わりにパスワードを使用しています。マシンDからマシンAに接続することもできます(望むものとは逆)。

編集:-vvvの出力は正しく検証されているように見えますが、開始されます。

....
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
[email protected]'s password: 
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
Authenticated to 192.168.1.124 ([192.168.1.124]: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 [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: send packet: type 1
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t3 r-1 i0/0 o0/0 fd 4/5 cc -1)

Connection to 192.168.1.124 closed by remote host.
Connection to 192.168.1.124 closed.
Transferred: sent 2084, received 2084 bytes, in 0.0 seconds
Bytes per second: sent 25409678.9, received 25409678.9
debug1: Exit status -1

ベストアンサー1

このエラーは、ユーザー名/パスワードが正しくない場合に発生します。パスワードを確認するか、ユーザーのパスワードを変更してもう一度やり直してください。ユーザーが存在し、自宅の場所に対する適切な所有権と権限を持っていることを確認します。

おすすめ記事