Differences between revisions 12 and 13
Revision 12 as of 2021-01-19 17:22:18
Size: 243
Comment:
Revision 13 as of 2021-01-19 19:12:11
Size: 1522
Editor: naoki.koyama
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
 1.
 2.
 * Open terminal and enter this command.
{{{
cd ~/.ssh
ssh-keygen -t rsa -C adress@example.com
}}}
please input your own mail address.

 * Please follow the instructions on the terminal and enter information.
{{{
Enter file in which to save the key (/home/.ssh/id_rsa):
}}}
please enter this text
/Users/'''XXX'''/.ssh/id_rsa'''_gitlab'''

'''XXX''' is your username.

{{{
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
}}}

I did not entered anything.
If you need a password, please enter it.

{{{
chmod 600 id_rsa
}}}

This command should be changed to the following.

chmod 600 id_rsa'''_gitlab'''

= Register your public key with GitLab =

{{{
vim ~/.ssh/config
}}}

 * Please open '''config''' with terminal directory or entering this command

{{{
touch config
open .
}}}

and select config with Finder application.

 * Add this text in '''config''' file

Host '''git.ligo.org'''
  User '''name'''

  HostName '''git.ligo.org'''<<BR>>

  TCPKeepAlive yes<<BR>>

  identitiesonly yes<<BR>>

  identityFile ~/.ssh/id_rsa'''_gitlab'''

The '''name''' is your gitlab account name.

 * Visit gitlab page and open our project.

Please open '''Setting -> Add SSH''' and paste the config file contents.

how to make public git repository on git.ligo.org

  • Open terminal and enter this command.

cd ~/.ssh
ssh-keygen -t rsa -C adress@example.com

please input your own mail address.

  • Please follow the instructions on the terminal and enter information.

Enter file in which to save the key (/home/.ssh/id_rsa):

please enter this text /Users/XXX/.ssh/id_rsa_gitlab

XXX is your username.

Enter passphrase (empty for no passphrase):
Enter same passphrase again:

I did not entered anything. If you need a password, please enter it.

chmod 600 id_rsa

This command should be changed to the following.

chmod 600 id_rsa_gitlab

Register your public key with GitLab

vim ~/.ssh/config
  • Please open config with terminal directory or entering this command

touch config
open .

and select config with Finder application.

  • Add this text in config file

Host git.ligo.org

  • User name

    HostName git.ligo.org

    TCPKeepAlive yes

    identitiesonly yes

    identityFile ~/.ssh/id_rsa_gitlab

The name is your gitlab account name.

  • Visit gitlab page and open our project.

Please open Setting -> Add SSH and paste the config file contents.

KAGRA/Subgroups/MIF/Simulation/GitlabStartUp (last edited 2021-09-08 17:47:53 by KeikoKokeyama)