how to lock user with wrong private key ( ssh key )

7 views
Skip to first unread message

test20...@gmail.com

unread,
Mar 20, 2017, 1:33:48 AM3/20/17
to VGLUG
Hell0 ,

Can anyone help me with following scenario ??

i am using ubuntu 14.04,

i have enabled password less authentication with ssh-key pairs

now my requirement is to lock user if he tries to login with wrong private key


with password based authentication method we can achieve this , but my requirement is to achieve with ssh-key pairs.

Bhadreshsinh Gohil

unread,
Mar 20, 2017, 2:58:40 AM3/20/17
to vg...@googlegroups.com
Hello Folks,


On Sun, Mar 19, 2017 at 10:29 PM, <test20...@gmail.com> wrote:
now my requirement is to lock user if he tries to login with wrong private key

By using Fail2ban, you can block the particular person. 
Read below link for more details.
(From page no. 18, you can read my article)

Thanks And Regards
+91 7600 95 94 93

test20...@gmail.com

unread,
Mar 22, 2017, 4:57:33 AM3/22/17
to VGLUG
Hello Bhadreshsinh  , 

Thanks for reply , i will  try fail2ban & let you know.
Reply all
Reply to author
Forward
0 new messages