I am completely unable to connect using Secure Shell, although I can using putty on windows, terminus and juiceSSH on android/chromebook etc using the same keys
The odd thing is that until half-way through last year I could use Securer Shell- and nothing in the server or keys has changed. I presume an update broke it but I have no sills to work out why
I have tried to convert the key to different formats to see if that is the issue, but no luck yet.
I've included the verbose output of the terminal below- please help, as it is sending me mad
Using rsa keys
key formats:
============================================
-----BEGIN RSA PRIVATE KEY-----
######
-----END RSA PRIVATE KEY-----
============================================
public key
============================================
ssh-rsa AAAAxxx
============================================
Terminal output::
============================================
Connecting to osmc@pxxx...
Loading NaCl plugin... done.
OpenSSH_7.6p1, OpenSSL 1.0.2k 26 Jan 2017
debug1: Connecting to pxxx [.] port 22.
debug1: Connection established.
debug1: getpeername failed: No such file or directory
key_load_public: invalid format
debug1: identity file /.ssh/pipriv2 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /.ssh/pipriv2-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Debian-5+deb8u3
debug1: match: OpenSSH_6.7p1 Debian-5+deb8u3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to pxxx:22 as 'osmc'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:NAgy8DvD46kNuQtiuw9UvfAl/NuKzOh6xke0adHuFdk
The authenticity of host 'pxxx (.)' can't be established.
ECDSA key fingerprint is SHA256:NAgy8DvD46kNuQtiuw9UvfAl/NuKzOh6xke0adHuFdk.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'pxxx,' (ECDSA) to the list of known hosts.
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/pipriv2
Load key "/.ssh/pipriv2": Invalid key length
debug1: No more authentication methods to try.
osmc@xx: Permission denied (publickey).
NaCl plugin exited with status code 255.
(R)econnect, (C)hoose another connection, or E(x)it?
failed! :(
====