SSH: localhost closes connection after successful login

て烟熏妆下的殇ゞ 提交于 2019-12-05 03:52:44

Okay, so what finally worked was explicitly allowing connections from user. Setting System Prefs > Sharing > Remote Login > Allow access for: to All Users doesn't work; instead I had to check Only these users: and manually add all users. Hope this helps anyone else having the same problem.

A long time ago I had the same problem with Telnet, and if I remember it well, the problem was with the user having no home directory in /etc/passwd. I am assuming that you are trying to create a password-less connection, am I right? When you google it, there is a good explanation of it here: http://diuf.unifr.ch/main/tech/node/57 Also, here is an explanation how to quickly make the password less connection http://greg-n-blog.blogspot.com/search/label/scp

This worked for me in Cygwin using Windows within a large domain:

Add your Windows user ID to /etc/passwd. You can get it by typing $ mkpasswd -d | grep [username]. In a large domain, you may have to wait several hours.

Make sure the user ID given in /etc/passwd matches that in $ id -u, and the group ID matches that for Administrators in /etc/group

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!