Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


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

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.

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

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

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

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

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


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 05:25 AM.

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