LoginSignup
0
0

amazon linuxでのgithubファイル展開

Last updated at Posted at 2024-04-26

はじめに

amazon linuxでのgithubファイル展開
aws github 展開 連携

linux系コマンドでのgithub連携

今回はamazon linuxを使っています。

  • github ファイル展開 設定
  • ilnux ssh追加(ssh接続でAWSにログイン)
  • linux github ファイル展開

github ファイル展開 設定

GitHubにログイン

\Settings
\SSH and GPG keys
\New SSH keyボタン

Settings
github_ssh1.PNG
SSH and GPG keys
github_ssh2.PNG
New SSH keyボタン
github_ssh3.PNG

title設定(例:aws-server-ssh)
key ssh pub

↓sshをaws ec2 で作成します。↓

ilnux ssh追加(ssh接続でAWSにログイン)

git inst
sudo yum install -y git

SSHキーを作成

ssh-keygen -t rsa -b 4096

ssh pub 参照(github ssh登録用にコピー)

cat ~/.ssh/id_rsa.pub

title設定(例:aws-server-ssh)
key ssh pub
ペースト保存

linux github ファイル展開

yes回答

ssh -T git@github.com
----- yes

サクセス時

Hi name! You've successfully authenticated, but GitHub does not provide shell access.

エラーが出てる場合は、github連携からもう一度確認。

fin
/github連携 終わり

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0