LoginSignup
2
1

More than 5 years have passed since last update.

ServersMan@VPS[CentOS 7 (64bit)]githubのssh接続方法(key作成と登録)

Posted at

Serversman@VPS に root でログインする。

cd /root

下記コマンドを実行する。

ssh-keygen -t rsa -C "自分のメールアドレス"

いろいろ聞かれるが、すべて Enter でよい。
終わったら、作成されたキーの内容をコピペする。

cat .ssh/id_rsa.pub

githubのサイトにログインする。

https://github.com/

settings > SSH keys で、コピペしたキーの内容を登録する。名前は任意。
これでサーバから SSH にて github に接続できるようになる。あとは、
git clone git@github.com:**/**
などを実行すればよい。

2
1
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
2
1