-2

I have configured ssh on Debian 7 x64 server with public key in ~/.ssh/authorized_keys

My goal is to disable password authorization via ssh and leave only RSA authorization.

Right now both ways are working. I added these lines in /etc/ssh/ssh_config:

PasswordAuthentication no
UsePAM no
ChallengeResponseAuthentication no
PermitRootLogin without-password

and reloaded service with command: service ssh reload

but sill able to login with username and password.

Any ideas?

4
  • Output of ssh -v would help. Apr 24, 2014 at 23:27
  • @MarkWagner when I run command ssh -v it gives me only option list of ssh usage
    – zur4ik
    Apr 24, 2014 at 23:29
  • Take your full ssh command and run it with -v inserted after ssh . Apr 24, 2014 at 23:30
  • I'm using Putty from windows machine to login server. How can use -v key in command from putty?
    – zur4ik
    Apr 24, 2014 at 23:36

1 Answer 1

2

You should be adding those lines to your /etc/ssh/sshd_config

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .