Search code examples
windows-server-2008openssh

Windows Server 2008 openssh connection reset


On Windows Server 2008, I installed openssh but I can't connect it. On Windows Server 2012 it worked. The server log:

2708 2020-09-28 14:24:36.368 debug3: checking match for 'Group administrators' user administrator host 42.120.75.144 addr 42.120.75.144 laddr 172.16.12.219 lport 22
2708 2020-09-28 14:24:36.368 debug1: generate_s4u_user_token: LsaLogonUser() failed. User 'administrator' Status: 0xC000000D SubStatus 0.
2708 2020-09-28 14:24:36.368 debug3: get_user_token - unable to generate token for user administrator
2708 2020-09-28 14:24:36.368 debug1: generate_s4u_user_token: LsaLogonUser() failed. User 'administrator' Status: 0xC000000D SubStatus 0.
2708 2020-09-28 14:24:36.368 error: get_user_token - unable to generate token on 2nd attempt for user administrator
2708 2020-09-28 14:24:36.368 fatal: ga_init, unable to resolve user administrator
2708 2020-09-28 14:24:36.368 debug1: do_cleanup
2708 2020-09-28 14:24:36.368 debug1: Killing privsep child 2848

the client log:

Connection reset by 47.116.68.56 port 22

Solution

  • According to this thread: https://community.spiceworks.com/topic/2257505-ssh-error-connection-reset-by-peer

    They point out that Windows Server 2008 uses older encryption protocols, which after looking at you error log seems as the reason for the connection failure.