1

Cygwin を実行している Windows 7 で SSHD サービスをセットアップする際に問題があります。このチュートリアルに従ったところ、初めて機能しましたが、再起動後、保存されている公開鍵~/.ssh/authorized_keysにより、外部 CLI からこのマシンにアクセスできなくなります。さらに、パスワード認証も機能しません.cygwinを使用してパスワードをリセットしようとしましたpasswd testinguser.

これまでに行った手順は次のとおりです。

  • Cygwin SSHD サービスを再インストールします (testinguser 以外の Windows ユーザー アカウントも削除しました)。
  • チュートリアルで説明されているように、ssh-host-config を再度実行します。
  • Cygwin コンソールから testinguser パスワードをリセットする
  • 権限を .authorized_keys および親フォルダーに設定します。

    chmod 700 ~/.ssh & chmod 600 ~/.ssh/authorized_keys

  • 無効化された Windows Defender ファイアウォールおよびその他の AV ソフトウェア (httpd は正常に動作します)

以下はssh <host> -vコマンドの結果です:

debug1: Remote protocol version 2.0, remote software version WeOnlyDo 2.1.3
debug1: no match: WeOnlyDo 2.1.3
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.1p1 Debian-4
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 5d:9b:19:36:1c:67:1d:c9:ef:91:7c:1e:e8:3b:ba:12
debug1: Host '10.1.0.46' is known and matches the RSA host key.
debug1: Found key in /home/banasiak/.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: Offering RSA public key: /home/banasiak/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentications that can continue: password,publickey
debug1: Offering RSA public key: banasiak@pc-71-wroc
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentications that can continue: password,publickey
debug1: Trying private key: /home/banasiak/.ssh/id_dsa
debug1: Trying private key: /home/banasiak/.ssh/id_ecdsa
debug1: Next authentication method: password

他に確認すべきことはありますか?SSHD サービスは正しく実行されています。エラーなしで開始および停止できます。

4

0 に答える 0