我正在使用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有什么普遍问题?谢谢。
id_rsa
,而不是“private”... - VonCsed
或awk
的问题,但我可能会在unix.SE上问。 - Josh K