본문 바로가기
클라우드/gitlab

Gitlab 서버 접속

by "뭉치" 2021. 9. 3.
728x90

AWS Bastion 서버 접속

Gitlab EC2 Instance에 접속하기 위해 PMS Bastion 서버에 먼저 접속한다(SSH / Putty 활용).

Putty를 통한 Bastion 서버 접속 방법 : https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/putty.html


Gitlab EC2 인스턴스 접속을 위해 AWS pem 파일을 Bastion 서버 내에 생성

- vi 를 통해 pem 파일 내용을 copy 하여 파일을 생성하거나 ftp를 통해 pem 파일을 Bastion 서버에 put

Gitlab EC2 Private IP 확인


Bastion 서버에서 ssh 통해 Gitlab EC2 서버 접속

ssh -i << pem 파일명 >> <>@<>

ex) ssh -i gitlab.pem username@10.14.***.***

 

ubuntu@ip-10-13-**-***:~$ ssh -i gitlab.pem username@10.14.***.***

Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-1105-aws x86_64)

 

 * Documentation:  https://help.ubuntu.com

 * Management:     https://landscape.canonical.com

 * Support:        https://ubuntu.com/advantage

 

 * MicroK8s gets a native Windows installer and command-line integration.

 

     https://ubuntu.com/blog/microk8s-installers-windows-and-macos

 

15 packages can be updated.

0 updates are security updates.

 

New release '18.04.4 LTS' available.

Run 'do-release-upgrade' to upgrade to it.

 

 

*** System restart required ***

Last login: Thu Jun 11 15:35:01 2020 from 10.13.***.***

ubuntu@ip-10-14-***-***:~$

 

 

728x90

'클라우드 > gitlab' 카테고리의 다른 글

gitlab pipeline gcp  (0) 2021.09.06
gitlab pipeline aws  (0) 2021.09.05
gitlab 설치  (0) 2021.09.04

댓글