Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: perl in the stars

by hv (Prior)
on Dec 17, 2022 at 14:19 UTC ( #11148939=note: print w/replies, xml ) Need Help??


in reply to perl in the stars

Regarding gitlab, I seem to be stuck at ssh setup page for gitlab. Which ssh key am I giving them? Do I generate a new key pair for this instance or one that I have already created?

I have not used gitlab, but I have used github and a variety of non-web remote git servers, the underlying git authentication model will be the same.

I have a single ssh key that I use for authentication, connected to my email address. Github gets the public key (as does the git config on any other remote git server I interact with). After any reboot, the first command I run is ssh-add so that all terminals I open already have my credentials (nobody else has access to this computer), and interaction with github and others is seamless.

Replies are listed 'Best First'.
Re^2: perl in the stars
by Aldebaran (Curate) on Dec 19, 2022 at 05:24 UTC
    I have a single ssh key that I use for authentication, connected to my email address. Github gets the public key (as does the git config on any other remote git server I interact with). After any reboot, the first command I run is ssh-add so that all terminals I open already have my credentials (nobody else has access to this computer), and interaction with github and others is seamless.

    Ok, I thought I was getting the upper hand with this:

    $ xclip -sel clip < id_rsa.pub

    But then...

    fritz@laptop:~/.ssh$ ssh -T tallharry66@gitlab.com The authenticity of host 'gitlab.com (2606:47...:a9b9)' can't be estab +lished. ECDSA key fingerprint is SHA256:....w. Are you sure you want to continue connecting (yes/no/[fingerprint])? y +es Warning: Permanently added 'gitlab.com,2606:4700:....' (ECDSA) to the +list of known hosts. tallharry66@gitlab.com: Permission denied (publickey). fritz@laptop:~/.ssh$

    So I'm not there yet. Was the .pub one the right one to give to gitlab?

    (I hope I haven't left my auth key bare here.)

    is @gitlab.com right?

    Fishing for tips,

      After copying the locally stored public key to clipboard (xclip ...) one needs to paste it to gitlab's dashboard's relevant textbox, I think.

        Indeed. It needs to go in here.


        🦛

      I think we are not supposed to use ssh directly to login to gitlab/github/bitbucket/etc, only via git clone/push/pull/...
      You are supposed to create a repository via the web interface, and they show you the correct git incantation to connect your local repo with the remote.
      PLUS you might have to select "ssh" instead of "http(s)"...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11148939]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-09-26 20:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?