[Bug 3799] Slow login with PAM enabled when connecting to sshd socket listening on Guest Vsock
    bugzilla-daemon at mindrot.org 
    bugzilla-daemon at mindrot.org
       
    Thu Jul  3 14:56:02 AEST 2025
    
    
  
https://bugzilla.mindrot.org/show_bug.cgi?id=3799
xenia <xenia at ccs.neu.edu> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xenia at ccs.neu.edu
--- Comment #1 from xenia <xenia at ccs.neu.edu> ---
As far as I can tell, the root cause of this is that sshd sets
PAM_RHOST to "UNKNOWN" (literal string) when the socket is non-TCP/IP,
and then PAM tries to do a DNS lookup for "UNKNOWN" several times. This
seems like a genuine sshd bug to me. It should not be sending an
invalid hostname to pam via PAM_RHOST if it doesn't actually know the
remote hostname. I can try to write up a patch if there's interest.
(Otherwise, I resolved this issue currently with a hack -- if there's
an entry for "UNKNOWN" in /etc/hosts everything is fine and there are
no delays)
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
    
    
More information about the openssh-bugs
mailing list