Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 04:01 AM   #1
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

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, 04: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, 04:09 AM   #3
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

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

Last edited by vishesh; 01-20-2011 at 04: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 07:40 PM
Can't use private key for ssh t0ken407 Linux - Server 9 05-31-2009 03:50 PM
ssh private key question vonedaddy Linux - Security 4 01-14-2008 11:41 AM
need help with SSH private/public key taduser Linux - Security 2 04-02-2007 08:07 PM
SSH: Help needed adding private key thomsky Linux - Security 3 10-21-2006 06:04 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration