Forked from zhanghui9700/nova-passwordless-ssh-login.sh
Created
February 19, 2016 01:53
-
-
Save lapngodoan/fc7a21048a3ee116949b to your computer and use it in GitHub Desktop.
passwordless ssh host by nova
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; allow nova login | |
usermod -s /bin/bash nova | |
su - nova | |
; ssh key | |
ssh-keygen | |
; scp key to compute host | |
scp /var/lib/nova/.ssh/id_rsa.pub root@ComputeHost:/var/lib/nova/.ssh/authorized_keys | |
; edit /etc/ssh/sshd_config | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment