News for hackers. Stuff that matters.
Re:OpenSSH user enumeration by mackal on Sunday August 19, 2018 @12:27AM (#17792599)
They are useful though. If you check a bunch of usernames from a person leak and find matches, you got a password to try.
Re:OpenSSH user enumeration by thaumaturgy on Sunday August 19, 2018 @03:21AM (#17793025)
A correct sshd_config includes:

    PasswordAuthentication no
Re:OpenSSH user enumeration by shpx on Sunday August 19, 2018 @06:25AM (#17793620)
You can also use https://tinyssh.org instead of the sshd from OpenSSH. It only implements key based authentication and newer encryption algorithms. It's available on Ubuntu:

    sudo apt install tinyssh
    wget https://github.com/yourusername.keys -O ~/.ssh/authorized_keys 
    sudo systemctl enable tinysshd.socket
but it's not widely used, which makes using it risky. To my knowledge there hasn't been a formal audit. Also it doesn't implement the scp protocol, but you can use rscync over ssh

    alias scp="rsync -e ssh --progress"
Re:OpenSSH user enumeration by half-kh-hacker on Sunday August 19, 2018 @07:17AM (#17793790)
> Also it doesn't implement the scp protocol

From the FAQ[1]:

> TinySSH doesn’t have problem with scp protocol, only doesn’t have scp program.

I assume this means an OpenSSH `scp` command will work just fine when pointed at a tinyssh daemon, without the rsync alias.

[1]: https://tinyssh.org/faq.html

Re:OpenSSH user enumeration by exikyut on Sunday August 19, 2018 @08:58AM (#17794110)
TIL TinySSH exists.

Immediate pro: Public domain / CC0

Immediate potential-con: Doesn't implement compression

Re:OpenSSH user enumeration by mrkoot on Sunday August 19, 2018 @04:48AM (#17793334)
+1. But just to be sure: that does not prevent testing for usernames and hence enumerating software by testing for known/common service account usernames (e.g. "_tor" on OpenBSD and "debian-tor" on Debian-based OSs). (No claim was made to the contrary; just mentioning this to prevent anyone from thinking otherwise.)
Re:OpenSSH user enumeration by jwilk on Sunday August 19, 2018 @05:59AM (#17793547)
To disable logging in with password you also need:

  ChallengeResponseAuthentication no
Re:OpenSSH user enumeration by mwpmaybe on Wednesday August 22, 2018 @12:49PM (#17820030)
I got a chill up my spine when I read this but fortunately it looks like this is the default on Ubuntu 16.04 and 18.04 (at least).
Re:OpenSSH user enumeration by jwilk on Friday August 24, 2018 @03:03PM (#17837092)
Apparently Debian disabled it in 2005:

  openssh (1:4.1p1-1) experimental; urgency=low
  
    […]
    * Disable ChallengeResponseAuthentication in new installations, returning
      to PasswordAuthentication by default, since it now supports PAM and
      apparently works better with a non-threaded sshd (closes: #247521).
    […]
  
   -- Colin Watson <[email protected]>  Tue, 31 May 2005 01:33:33 +0100
https://bugs.debian.org/247521
Re:OpenSSH user enumeration by flas9sd on Sunday August 19, 2018 @10:47AM (#17794489)
for a longer explanation see https://blog.tankywoo.com/linux/2013/09/14/ssh-passwordauthe...

Though, if you're using TOTP via a PAM module, you'll want it