Git Configuring SSH Permission Denied (Publication)

I am using a VWWare Ubuntu 8.04 image and am having problems setting up git access to 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 created keys with ssh-keygen -t rsa

and renamed them identity (private) and ida_rsa (public), because they were not originally found using ssh .

I also created a configuration file as shown here ...

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

Nothing changed.

Am I missing something or is there something wrong with SSH in VMWare?

Hello

+5
source share
1 answer

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 this does not work, start the SSH server from the command line in debug mode. He can give you more information why he rejects the login.

 sudo /usr/sbin/sshd -Dd 
+5
source

Source: https://habr.com/ru/post/953196/


All Articles