@arnos this issue is easy to fix. I had similar issue with centos image. This is what i had done to fix it for centos.
```
sed 's/UsePAM yes/UsePAM no/' -i /etc/ssh/sshd_config
```