Solved

Setup OpenSSH server on CentOS

Posted on 2012-03-10
4
356 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:Gabriel Orozco
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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
Transferring data across the virtual world became simpler but protecting it is becoming a real security challenge.  How to approach cyber security  in today's business world!
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
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…

685 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