Use ssh without password for specific user on OpenStack instance
Hello community,
I am trying to solve problem with ssh command on Centos 6.6. I have OpenStack instance with generated keypair. So when I am accessing the instance I have to set command like "ssh -i nameOfKey.key centos@hostname
". Problem occurring when I need to install on Linux some IBM software and it is calling command like "ssh smadmin@localhost
". I want set in /etc/ssh/sshd_config
that some user/group can use ssh command without -i parameter and key. Is it possible? I have written next 4 lines into sshd_config
.
Match user jp
PasswordAuthentication no
GSSAPIAuthentication no
PubkeyAuthentication no
But if I try to ssh user jp(ssh jp@localhost). I got "Permission denied, please try again". Thanks for any advice Jan.