You are not logged in.

#1 2018-07-15 22:51:29

_JZA_
Member
Registered: 2014-08-28
Posts: 32

[SOLVED] Issues using keys with SSH

I am trying to push a git project but I keep hitting a wall when I try to test my ssh and I am not sure why I did a ssh -v (verbose) to see where exactly it fails. I get that some file is not being found and I am not sure where is happening.

OpenSSH_7.7p1, OpenSSL 1.1.0h  27 Mar 2018
debug1: Reading configuration data /home/jza/.ssh/config
debug1: /home/jza/.ssh/config line 11: Applying options for gitlab.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to gitlab.com [52.167.219.168] port 22.
debug1: Connection established.
debug1: identity file /home/jza/.ssh/kudu type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/jza/.ssh/kudu-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to gitlab.com:22 as 'jza'

So key_load_public is the one I am not sure why is not happening, I do have kudu and kudu.pub on my ~/.ssh/ directory, anyone can help me see whats going on. I also have a ~/.ssh/config as:

Host gitlab.com
  User jzarecta
  IdentityFile ~/.ssh/kudu

Last edited by _JZA_ (2018-07-16 01:09:06)

Offline

#2 2018-07-15 23:07:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Issues using keys with SSH

You are attempting to authenticate as jza,  but your config has a different username.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-07-15 23:09:34

_JZA_
Member
Registered: 2014-08-28
Posts: 32

Re: [SOLVED] Issues using keys with SSH

Odd my ~/.ssh/config shows user jzarecta which is the correct one, any idea why its trying to use 'jza' instead?

My final message is:
Jzarecta@gitlab.com: Permission denied (publickey).

Last edited by _JZA_ (2018-07-15 23:19:24)

Offline

#4 2018-07-15 23:36:18

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Issues using keys with SSH

I'd say the most obvious problem is that Gitlab requires you to authenticate as the "git" user... it's in the documentation, and the copy-paste clone urls will be of the form git@gitlab.com:XXXX/XXXX


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2018-07-16 00:59:02

_JZA_
Member
Registered: 2014-08-28
Posts: 32

Re: [SOLVED] Issues using keys with SSH

thanks that fixed it.

Offline

#6 2018-07-16 01:03:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Issues using keys with SSH

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB