LoginSignup
2
2

More than 5 years have passed since last update.

VULTRのVPSでGITHUBに登録した鍵でSSHログインできるようにする

Last updated at Posted at 2014-08-20

My Startup Scriptsに以下のスクリプトを登録します
デプロイ後すぐに普段GITHUBにコミットしているマシンでアクセスできます

#!/bin/sh
mkdir -p /root/.ssh
chmod 700 /root/.ssh
curl https://github.com/GITHUBのアカウント名.keys --output /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
2
2
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
2