SSH connection terminates right away on new install

128 views
Skip to first unread message

Joe Piche

unread,
Nov 4, 2020, 11:38:41 PM11/4/20
to PiDP-8

In case this helps some one else.

I did a quick search of the group for SSH, but didn't see anything like this issue.

I installed the latest version, was an idiot re: changing password, got logged in finally, and enabled SSH (3 different ways: the ssh file in the boot root folder, via raspi config, and also systemctl).

Putty and ssh would both close the session immediately.

OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
debug1: Connecting to 192.168.2.239 [192.168.2.239] port 22.
debug1: Connection established.
...
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1 Raspbian-10+deb9u6
debug1: match: OpenSSH_7.4p1 Raspbian-10+deb9u6 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.2.239:22 as 'pidp8i'
debug1: SSH2_MSG_KEXINIT sent
Connection reset by 192.168.2.239 port 22

So, the server was running, but kicking me out right away.

The magic sauce was running (https://www.raspberrypi.org/forums/viewtopic.php?t=206998)

sudo dpkg-reconfigure openssh-server

It created a bunch of keys, and then i could SSH into the machine.

Warren Young

unread,
Nov 5, 2020, 12:20:14 AM11/5/20
to PiDP-8
On Wednesday, November 4, 2020 at 9:38:41 PM UTC-7 Super Grover wrote:
I did a quick search of the group for SSH, but didn't see anything like this issue.

That's because it's documented.
Reply all
Reply to author
Forward
0 new messages