Skip to main content
2 of 2
added 2 characters in body
stefd
  • 121
  • 7

ssh server encrypted key vs password login

In an openssh-server login to a GNU/Linux machine

to use a private ssh key encrypted with an N-characters passphrase, then sshd_config:

PasswordAuthentication no
PubkeyAuthentication yes

is it equivalent to use a login with a password that is always N-characters long?

PasswordAuthentication yes
PubkeyAuthentication no

in the event of a bruteforce attack.

stefd
  • 121
  • 7