Skip to content

Instantly share code, notes, and snippets.

@chooaya
Last active June 30, 2017 08:26
Show Gist options
  • Save chooaya/d275225ef764e7d784aa93511b15cff6 to your computer and use it in GitHub Desktop.
Save chooaya/d275225ef764e7d784aa93511b15cff6 to your computer and use it in GitHub Desktop.
## root でSSH できるのと、「パスワードを使って」ログインするのと、「パスフレーズ有無問わず」公開鍵認証は別物
## パスワード と パスフレーズ は別物
## 公開鍵認証をしていて、かつ、パスワードまで聞かれるのは、公開鍵認証が失敗してパスワード入力に切り替わっているケースのみ
# https://euske.github.io/openssh-jman/ssh_config.html
# https://docs.oracle.com/cd/E19683-01/816-3967/secsshuser-35/index.html
# http://qiita.com/gotohiro55/items/36a22516de2b381b3c6e
# http://qiita.com/kobake@github/items/d866392c07b03da099bf
# http://qiita.com/kentarosasaki/items/aa319e735a0b9660f1f0
# https://webkaru.net/linux/ssh-config-file/
# https://cloudpack.media/6257
cd ~
cd .ssh
ssh-keygen -t rsa -f tmi_rsa
vim config
---------------------------------------
HostName xxx.xxx.xxx.xxx
Port 22
User root
IdentityFile ~/.ssh/tmi_rsa
---------------------------------------
chmod 600 config
ssh-copy-id -i tmi_rsa.pub root@xxx.xxx.xxx.xxx
ssh root@xxx.xxx.xxx.xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment