1. Create a user (msmuser) for LSI MSM login
# adduser --shell /usr/sbin/nologin --gid 0 --no-create-home msmuser

2. Due to Mirantis OpenStack default root can't login for using password, and only use key pair. For system security, we configure a account/password to SSH login only.
# vim /etc/ssh/sshd_config
--------------------------------
......
......
......
......
......
......
Match User msmuser
PasswordAuthentication yes
--------------------------------

OR

--------------------------------
......
......
......
......
......
......
Match Group msmuser
PasswordAuthentication yes
--------------------------------

3. Restart service
# /etc/init.d/ssh restart

 

Reference: http://serverfault.com/questions/238711/force-ssh-public-key-authentication-for-specific-users

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()