我使用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(公共),因为它们最初由wheren't发现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