FORSMILE
JA
開発記事2020/05/07

SSH Connection between AWS EC2 and GitLab

Please refer to the following for connecting to an Amazon EC2 instance using PuTTY.

Back to Blog

Please refer to the following for connecting to an Amazon EC2 instance using PuTTY.

Connecting from Windows to a Linux instance using PuTTY

CREATE SSH KEY

Connect via SSH using PuTTY or similar tools and execute the following command to create an SSH key.

text
ssh-keygen -t rsa -C "your.email@example.com" -b 4096

-t rsa // Specifies the SSH key type. In this case, RSA.

-C "your.email@example.com" // Comment

・Enter file in which to save the key

REGISTER SSH KEY WITH GITLAB

Since xclip (or similar) is not installed, open the generated public SSH key with vi and copy it.

text
vi .ssh/id_rsa.pub     //作成時指定したフォルダ内

Paste the copied SSH key into "Add an SSH key," enter an appropriate title, and click "Add key."

📦
Amazon で関連書籍・ツールを検索
web development programming book
Amazonで探す →(アソシエイトリンク)
Related articles