connection to cygwin sshd auto connection after log in

1

I install the sshd service in cygwin successfully, but when I log in to the ssh server, the connection is auto closed.

I tried to execute the date command and it didn't output the result.

I also tried the ssh -vvv and there is no error...

What's the problem and how can I resolve it?

Thanks.

shangyin

Posted 2014-12-23T07:15:19.803

Reputation: 113

Please include the output of ssh -vvv. It might help us help you. – janos – 2014-12-23T07:16:32.107

@janos I tried the -vvv but it didn't show any errors... – shangyin – 2014-12-23T07:18:18.513

It shows a lot of stuff. Even if you don't see errors, somebody here might see something interesting. Please also include the exact command line you're executing, for example is it simply ssh localhost date, or something else? – janos – 2014-12-23T07:20:13.487

Answers

1

which user do you use?

If you use the default cyg_server user, then check the /etc/passwd file to check the user's login shell.

Check if the login shell is exist.

If everything is ok, then show your ssh -vvv result :-)

NingLee

Posted 2014-12-23T07:15:19.803

Reputation: 128

I see, the user is created when I execute the ssh-host-config, so it's login shell is /bin/false, I change it to /bin/bash, then I can log in now, Thanks. – shangyin – 2014-12-23T07:23:40.693