Skip to content

miss matching public keys methods #381

@wwencel

Description

@wwencel

When I'm trying to connect to netopeer2-server on the same system I'm getting:

> connect
nc ERROR: Starting the SSH session failed (Public key from server (rsa-sha2-512) doesn't match user preference (ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,ssh-rsa,ssh-dss)).
cmd_connect: Connecting to the localhost:830 as user "wlodek" failed.

keys were added:

> auth keys add /home/wlodek/.ssh/wlodek_rsa.pub /home/wlodek/.ssh/wlodek_rsa
wlodek@ubuntu1804-64-2:~/opt/Netopeer2-0.7-r1/server/configuration$ cat load_auth_pubkey.xml
<system xmlns="urn:ietf:params:xml:ns:yang:ietf-system">
  <authentication>
    <user>
      <name>wlodek</name>
      <authorized-key>
        <name>wlodek_rsa</name>
        <algorithm>ssh-rsa</algorithm>
        <key-data>AAAAB3NzaC1yc2EAAAADAQABAAABAQDCVTvJDQYS+dvhtyLEN50GMT9cAFU9oana9nTgbti4ARZmxxHQh5+zjYxZwXGXLXZ2s1yM4Ax0GOUAAYN3z4i3F1OfgQAkXiXRha60/HvCxaQ9QptfIAz7dqeVvvuczS978VE7QCWb9KaEGXqOgSY7CQAduR/vkI+UD0NM21ATM6/0g0PdoLbdxD+aZ84Z/rTFA6NHyfSCQROqGK6QR3kyg18ErwiDLGtpQzTK8elvycdkg6peNu1Fo3Hcw8RtySGNLlncX3vk0Ozrpuh+Ry9BMkQiSMWsjnyXC9LnIU5VpoyTkx/lPZ63YZQIYs91YzoN/FtHQ7oZsXrnv3WToO2V</key-data>
      </authorized-key>
    </user>
  </authentication>
</system>
wlodek@ubuntu1804-64-2:~/opt/Netopeer2-0.7-r1/server/configuration$ sudo sysrepocfg --import=load_auth_pubkey.xml ietf-system --datastore=startup
The new configuration was successfully applied.

No matter which connection type I set as preferred is it 'publickey' or 'interactive' at the first place I'm always getting the same error.

> auth pref
The SSH authentication method preferences:
	'publickey':   1
	'password':    2
	'interactive': 3

Where am I making mistake of miss matched rsa methods?

used versions:

  • libyang-0.16-r3
  • sysrepo-0.7.7
  • libnetconf2-0.12-r1
  • Netopeer2-0.7-r1
  • libssh-0.8.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions