LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs > zhjim
User Name
Password

Notices

Rate this Entry

SSH

Posted 06-25-2012 at 02:38 AM by zhjim
Updated 07-08-2013 at 07:55 AM by zhjim

Some reminders what can be done with ssh

Use password also we have a key login
Code:
ssh -o 'PubkeyAuthentication no' user@host
Notes for sshd:
Keybased login counts as one Authtry. Even when no key is used. That means when using MaxAuthTries 1 in sshd_config one needs to use -o 'pub...' with ssh client to even get to the password prompt. Or use PreferredAuthentication Password option for the client. This way it starts right away with password prompt. (No need for the pubkey.. no option).

Digging some more I found that most ssh clients first try a login without any method. This is seen in the logs as
Code:
sshd[]: Failed none for user from i.p.a.d port_number
I did not found away to stop this. But as it is used to have the client know what AuthenticationMethod the server allows I guess it can not be stopped.
Posted in Uncategorized
Views 501 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement

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