Thursday, September 30, 2021

thumbnail

How to login to GitHub Appliance

 For logging to GitHub appliance please follow the following steps using key pair:



1. First you need to create a keypair using "ssh-keygen" command. in this example am creating the private/public key as separate key without using existing id_rsa name.

# ssh-keygen 

Generating public/private rsa key pair.

Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/github-test

Enter passphrase (empty for no passphrase): 

Enter same passphrase again: 

Your identification has been saved in /root/.ssh/github-test.

Your public key has been saved in /root/.ssh/github-test.pub.

The key fingerprint is:

SHA256:G+dgUmIusjsaCQsHoo1JClafiQE10jFd4AmkKfd0hLA root@acg-vm1

The key's randomart image is:

+---[RSA 2048]----+

| o*@oo+.         |

|  =oXo+          |

|==E..*+ .        |

|O* o + o         |

|B + o o S .      |

|o+ o . o *       |

|+ .     . .      |

| ...             |

|....             |

+----[SHA256]-----+

2. github appliance uses port 122 to ssh into it. since we have created custom key pair we need to specify it when ssh into it.

# ssh -i /root/.ssh/github-test -p 122 admin@github-test

# ssh -i /root/.ssh/github-test -p 122 admin@github-test
     ___ _ _   _  _      _      ___     _                    _
    / __(_) |_| || |_  _| |__  | __|_ _| |_ ___ _ _ _ __ _ _(_)___ ___
   | (_ | |  _| __ | || | '_ \ | _|| ' \  _/ -_) '_| '_ \ '_| (_-</ -_)
    \___|_|\__|_||_|\_,_|_.__/ |___|_||_\__\___|_| | .__/_| |_/__/\___|
                                                   |_|

Administrative shell access is permitted for troubleshooting and performing
documented operations procedures only. Modifying system and application files,
running programs, or installing unsupported software packages may void your
support contract. Please contact GitHub Enterprise technical support at
https://enterprise.github.com/support if you have a question about the
activities allowed by your support contract.

INFO: Release version: 3.1.7
INFO: 4 CPUs, 31GB RAM on VMWare
INFO: License: production; Seats: 655 of 932; Will expire in 25 days.
INFO: Load average: 1.57 1.22 1.28
INFO: Usage for root disk: 30G of 98G (33%)
INFO: Usage for user data disk: 81G of 271G (32%)
INFO: TLS: enabled; Certificate will expire in 61 days.
INFO: HA: standalone
INFO: Configuration run in progress: false
Last login: Thu Sep 30 05:21:44 2021 from 10.6.46.51

3. To check the partition details and disk usage use the following command.

# lsblk
NAME                                 MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                                    8:0    0  250G  0 disk 
\u251c\u2500sda1                                 8:1    0  100G  0 part 
\u2514\u2500sda2                                 8:2    0  100G  0 part /
sdb                                    8:16   0  275G  0 disk 
\u2514\u2500ghe_storage_74ae6d58-ghe_user_data 254:0    0  275G  0 lvm  /data/user

# df -h /data/user
Filesystem                                      Size  Used Avail Use% Mounted on
/dev/mapper/ghe_storage_74ae6d58-ghe_user_data  271G   81G  177G  32% /data/user

 

 

Subscribe by Email

Follow Updates Articles from This Blog via Email

No Comments

Powered by Blogger.