Solved

Setup OpenSSH server on CentOS

Posted on 2012-03-10
4
340 Views
Last Modified: 2012-06-27
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
Comment
Question by:searchsanjaysharma
4 Comments
 
LVL 11

Expert Comment

by:Khandakar Ashfaqur Rahman
ID: 37704778
Please check the following link:
http://www.cyberciti.biz/faq/centos-ssh/
0
 
LVL 19

Expert Comment

by:Redimido
ID: 37740691
Hi searchsanjaysharma

just type this as root:
yum install openssh-server.i386 (or .x86_64 if your CentOS is 64 bits)
0
 
LVL 13

Accepted Solution

by:
Sandy earned 500 total points
ID: 37761295
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
 

Author Closing Comment

by:searchsanjaysharma
ID: 37764650
ok
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In every aspect, security is essential for your business, and for that matter you need to always keep an eye on it. The same can be said about your computer network system too. Your computer network is prone to various malware and security threats t…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now