Tuesday, January 29, 2013

Fixing ssh's "Connection closed" Error


I am unable to ssh as newly added user (hg aka "Mercurial User") ...


$ ssh hg@mini
Connection closed by <IP_ADDRESS_HERE>


I notice the following message in the system logs:


1/29/13 11:36:59.776 PM sshd[362]: fatal: Access denied for user hg by PAM account configuration [preauth]


I simply had to add the Mercurial User to the Remote Logins list for mini:




Now, I can ssh fine ***

$ ssh hg@mini
mini:~ hg$


*** Assumes the public key from the work computer has been added to the authorized_keys file of mini

Sponsor Ads


1 comment: