Ssh Issue

I have a problem trying to ssh into my openhab server
Copying the output of my ssh command -

can’t ssh into openhab server on my raspberry pi3
copying the output -
ssh openhabian@192.168.1.4 -v
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 192.168.1.4 [192.168.1.4] port 22.
debug1: Connection established.
debug1: identity file /Users/Gagan/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Gagan/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Gagan/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Gagan/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Gagan/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Gagan/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Gagan/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Gagan/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Raspbian-5+deb8u3
debug1: match: OpenSSH_6.7p1 Raspbian-5+deb8u3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.1.4:22 as 'openhabian’
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 192.168.1.4

Can anyone help fix this error?

On my install of openhabian, I log in as the username ‘pi’.

There is no openhabian user on there.

@Darren_Poulson Your system is outdated then.

http://docs.openhab.org/installation/openhabian.html

@gagandeeps what did you do before the problem occurred? Did you try rebooting the system?

1 Like

@Darren_Poulson I tried using the username pi before -does not work.
@ThomDietrich I tried rebooting. Also tried using both wifi and LAN. Also, restarting the ssh server on my pi. Did a port scan and port 22 is open.
PS: I can open the openhab config page - 192.168.1.4:8080

@ThomDietrich I checked the log file. It says
fatal: No key exchange algorithms(preauth)
I think the problem is with the key exchange, but I still haven’t figured show to fix it.

@ThomDietrich @Darren_Poulson Found the fix using the following link -

Many thanks,
Gagandeep

1 Like