Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about "user not found on netopeer2-server" #1683

Closed
dkahn11 opened this issue Dec 19, 2024 · 3 comments
Closed

Question about "user not found on netopeer2-server" #1683

dkahn11 opened this issue Dec 19, 2024 · 3 comments
Labels
is:question Issue is actually a question.

Comments

@dkahn11
Copy link

dkahn11 commented Dec 19, 2024

Hi,

I'm using netopeer2 (release version 2.1.71) and it works well with Linux account on my VM.
And these are the version information.
netopeer2: version 2.1.71
libnetconf2: version 2.1.37
libyang: version 2.1.111
sysrepo: version 2.2.105

I'm tried to add a local user (testuser) on the netconf-server instead of creating Linux account as below.
image

But, I can't connect to the server with the local user and I can see the messages on netopeer2-server as below.

[INF]: LN: Accepted a connection on 0.0.0.0:830 from 127.0.0.1:41182.
[INF]: SR: Session 39 (user "root", CID 1) created.
[INF]: LN: Received an SSH message "request-service" of subtype "ssh-userauth".
[INF]: LN: Received an SSH message "request-auth" of subtype "none".
[INF]: LN: Received an SSH message "request-auth" of subtype "password".
[INF]: LN: User "testuser" not found locally.
[INF]: LN: Failed user "testuser" authentication attempt (#1).
[ERR]: LN: Communication SSH socket unexpectedly closed.

It seems that the cause of connection failure is that netopeer2-server could not find the local user ("testuser").

Could you check if the configuration is correct?
Is there any additional steps to enable the local use if the configuration is correct?

Best regards,
Dokeun

@michalvasko
Copy link
Member

In the version of libnetconf2 you are using, the users for SSH authentication could not be configured directly but were read from the system instead so your <users> configuration subtree is completely ignored. But the user configuration is supported in the libnetconf2 versions 3.x so if you update, it will work as expected.

@michalvasko michalvasko added the is:question Issue is actually a question. label Dec 19, 2024
@dkahn11
Copy link
Author

dkahn11 commented Dec 19, 2024

Thanks for the confirmation and I'll test with the libnetconf2 version 3.x.

Thanks and regards,
Dokeun

@dkahn11 dkahn11 closed this as completed Jan 2, 2025
@dkahn11
Copy link
Author

dkahn11 commented Jan 2, 2025

Thank you for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:question Issue is actually a question.
Projects
None yet
Development

No branches or pull requests

2 participants