Git SSH设置权限被拒绝(publickey) [英] Git SSH setup Permission denied (publickey)
问题描述
我正在使用Ubuntu 8.04的VWWare映像,并在通过SSH设置git访问时遇到问题
我得到以下输出
debug1:可以继续的身份验证:publickey
debug1:下一个身份验证方法:publickey
debug1:提供公钥:
debug1:可继续的身份验证:publickey
debug1:提供公钥:
debug1:可继续的身份验证:publickey
debug1:提供公钥:
debug1:可继续的身份验证:publickey
debug1:提供公钥:
debug1:可继续的身份验证:publickey
debug1:尝试私钥:/home/jars/.ssh/identity
debug1:PEM_read_PrivateKey失败
debug1:读取PEM私钥完成:键入< unknown>
输入密钥'/home/jars/.ssh/identity'的密码:
debug1:读取PEM私钥完成:输入RSA
debug1:可继续的身份验证:publickey
debug1:没有更多的身份验证方法可以尝试。
权限被拒绝(publickey)。
我已经使用 ssh-keygen -t rsa $ (私人)和
ida_rsa
code>(public),因为最初他们没有被 ssh找到
。
我也创建了如图所示 ...
http://help.github.com/troubleshooting-ssh/
没有任何变化。
我是否错过了某些东西,或者在VMWare中使用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
I'm using a VWWare image of Ubuntu 8.04 and experiencing problems while setting up git access over SSH
I get the following output
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).
I have generated the keys with ssh-keygen -t rsa
and renamed them to identity
(private) and ida_rsa
(public), because initially they wheren't found by ssh
.
I also created a config file as depicted here...
http://help.github.com/troubleshooting-ssh/
Nothing changed.
Am I missing something or is there generally something wrong with using SSH in VMWare?
Regards
Check your permissions on your .ssh directory on the local and remote sides:
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
If that doesn't work, run the SSH server from the command line in debug mode. It may give you more information why it is rejecting the login.
sudo /usr/sbin/sshd -Dd
这篇关于Git SSH设置权限被拒绝(publickey)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!