Open fei15115 opened 1 year ago
Run the server with -d -v2
parameters and you will see its output with the reason why it failed. Impossible to tell from the side of the client.
Hi, please check this out
[INF]: LN: Accepted a connection on 0.0.0.0:830 from 127.0.0.1:34978.
Jul 11 10:23:57 M2-O daemon.info netopeer2-server[3347]: Accepted a connection on 0.0.0.0:830 from 127.0.0.1:34978.
[INF]: SR: Session 31175 (user "root", CID 2) created.
Jul 11 10:23:57 M2-O daemon.info netopeer2-server[3347]: Session 31175 (user "root", CID 2) created.
[INF]: LN: Received an SSH message "request-service" of subtype "ssh-userauth".
Jul 11 10:23:57 M2-O daemon.info netopeer2-server[3347]: Received an SSH message "request-service" of subtype "ssh-userauth".
[INF]: LN: Received an SSH message "request-auth" of subtype "none".
Jul 11 10:23:57 M2-O daemon.info netopeer2-server[3347]: Received an SSH message "request-auth" of subtype "none".
[INF]: LN: Received an SSH message "request-auth" of subtype "password".
Jul 11 10:24:01 M2-O daemon.info netopeer2-server[3347]: Received an SSH message "request-auth" of subtype "password".
[INF]: LN: Failed user "root" authentication attempt (#1).
Jul 11 10:24:01 M2-O daemon.info netopeer2-server[3347]: Failed user "root" authentication attempt (#1).
[2023/07/11 10:24:01.562974, 1] ssh_packet_disconnect_callback: Received SSH_MSG_DISCONNECT: 11:Bye Bye
[ERR]: LN: Communication SSH socket unexpectedly closed.
Jul 11 10:24:01 M2-O daemon.err netopeer2-server[3347]: Communication SSH socket unexpectedly closed.
So it seems you have simply failed the authentication. You have no SSH keys set for publickey
authentication and have input the wrong password for password
authentication. And it seems you have turned off keyboard-interactive
authentication so there are no more methods for the client to try and it disconnects.
Hi, please check this out
That is all fine but the authentication information on the server is read from the system. Meaning only system users can be used and their system password must be presented. If using public keys, only those present in authorized_keys
file of the user can be used for authentication.
We are using the system user, and logged into the system via ssh, which already exists before the connection.
Okay, then you must have used an incorrect password. Note that only local users are supported (we are working on some improvements), RADIUS will not work, for example.
Hi , When I trying to use the passwd to connect the server ,got below error:
I could make sure that the passwd is correct,But don't know why could not connect to the server. When I try to using the publickey to login the server and get success,But I want to login via the passwd. Could you help me with that?
release info :![image](https://github.com/CESNET/netopeer2/assets/37013076/37bb2d11-d6e0-4435-984a-024ddf21793f)