質問

Ubuntu 8.04のVWware画像を使用しており、SSHを介してGitアクセスを設定しながら問題を経験しています

次の出力を取得します

debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: 
debug1: Authentications that can continue: publickey
debug1: Offering public key: 
debug1: Authentications that can continue: publickey
debug1: Offering public key: 
debug1: Authentications that can continue: publickey
debug1: Offering public key: 
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/jars/.ssh/identity
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/jars/.ssh/identity': 
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).

キーを生成しました ssh-keygen -t rsa

に名前を変更しました identity (プライベート)と ida_rsa (パブリック)、最初はそれらがどこにありなかったので ssh.

設定ファイルも作成しました ここに描かれているように...

http://help.github.com/troubleshooting-ssh/

何も変わっていません。

私は何かが足りないのですか、それともvmwareでSSHを使用することに一般的に何か問題がありますか?

よろしく

役に立ちましたか?

解決

ローカル側とリモート側の.sshディレクトリのアクセス許可を確認してください。

drwx------ 3 xxx xxx 216 10-04 12:30 .ssh/
-rw------- 1 xxx xxx  745 06-19 12:37 authorized_keys
-rw------- 1 xxx xxx  783 05-08 22:15 config
-rw------- 1 xxx xxx 3.3K 2009-02-21  id_rsa
-rw------- 1 xxx xxx  745 2009-03-06  id_rsa.pub
-rw-r--r-- 1 xxx xxx  53K 09-27 15:51 known_hosts

それがうまくいかない場合は、デバッグモードでコマンドラインからSSHサーバーを実行します。ログインを拒否している理由を詳細に提供する場合があります。

sudo /usr/sbin/sshd -Dd
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top