Setup OpenSSH server on CentOS

Hi All,

I want to set-up an OpenSSH server on Linux VM - CentOS.

I have to configure the service in such a way that can only support public keys for authentication. Kindly provide me the exacts steps if possible.

Thanks
searchsanjaysharmaAsked:
Who is Participating?
 
SandyConnect With a Mentor Commented:
After installing openssh, just make below change in config file

#vim /etc/ssh/sshd_config

PasswordAuthentication no

:wq

# service sshd restart

Also put your public key inside auth_keys.
0
 
Khandakar Ashfaqur RahmanExpert/ConsultantCommented:
Please check the following link:
http://www.cyberciti.biz/faq/centos-ssh/
0
 
Gabriel OrozcoSolution ArchitectCommented:
Hi searchsanjaysharma

just type this as root:
yum install openssh-server.i386 (or .x86_64 if your CentOS is 64 bits)
0
 
searchsanjaysharmaAuthor Commented:
ok
0
All Courses

From novice to tech pro — start learning today.