Solved

Setup OpenSSH server on CentOS

Posted on 2012-03-10
4
358 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
How to set-up an On Demand, IPSec, Site to SIte, VPN from a Draytek Vigor Router to a Cyberoam UTM Appliance. A concise guide to the settings required on both devices
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…

751 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