• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 414
  • Last Modified:

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
0
searchsanjaysharma
Asked:
searchsanjaysharma
1 Solution
 
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
 
SandyCommented:
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
 
searchsanjaysharmaAuthor Commented:
ok
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Identify and Prevent Potential Cyber-threats

Become the white hat who helps safeguard our interconnected world. Transform your career future by earning your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now