Skip to content

Instantly share code, notes, and snippets.

@sakama
Created May 26, 2014 13:00
Show Gist options
  • Save sakama/7a0308180da2dcdf315e to your computer and use it in GitHub Desktop.
Save sakama/7a0308180da2dcdf315e to your computer and use it in GitHub Desktop.
既存のOpenSSL型式のSSH秘密鍵からMicrosoft Azure用の鍵を作成する
ssh-keygen -t rsa
openssl req -x509 -key ~/.ssh/id_rsa -nodes -days 365 -newkey rsa:2048 -out myCert.pem
#myCert.pemをコントロールパネルから登録する
ssh -i ~/.ssh/id_rsa azureuser@hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment