LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-20-2011, 03:01 AM   #1
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 658

Rep: Reputation: 66
Ssh access only using private key


I want to disable ssh access using username/password. i want to allow only using key. Please give me what i need to set in sshd server configuration file.

Thanks
 
Old 01-20-2011, 03:05 AM   #2
novice06
Member
 
Registered: Mar 2006
Location: Singapore
Distribution: RHEL, CentOS
Posts: 132

Rep: Reputation: 23
Edit /etc/ssh/sshd_config
PasswordAuthentication no

Cheer
 
Old 01-20-2011, 03:09 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 658

Original Poster
Rep: Reputation: 66
Thanks for your quick response, It worked

Last edited by vishesh; 01-20-2011 at 03:12 AM.
 
  


Reply

Tags
ssh access, ssh access using key


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh randomly not accepting my private key reeseslover531 Linux - Server 6 06-06-2010 06:40 PM
Can't use private key for ssh t0ken407 Linux - Server 9 05-31-2009 02:50 PM
ssh private key question vonedaddy Linux - Security 4 01-14-2008 10:41 AM
need help with SSH private/public key taduser Linux - Security 2 04-02-2007 07:07 PM
SSH: Help needed adding private key thomsky Linux - Security 3 10-21-2006 05:04 PM


All times are GMT -5. The time now is 08:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration