You are not logged in.
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
You are attempting to authenticate as jza, but your config has a different username.
Offline
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
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
thanks that fixed it.
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline