Notice: Undefined offset: 0 in /var/www/html/qa-plugin/custom-override/pages/question.php on line 258

Notice: Trying to access array offset on value of type null in /var/www/html/qa-plugin/custom-override/pages/question.php on line 258
 ssh fails with log message "User 'admin' has invalid shell, rejected" - Crowd Support Forum | Teltonika Networks

FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
367 views 1 comments
by anonymous

My device is an RUT950 with Product code "RUT950M02XXX" and firmware version "RUT9_R_00.07.03.4" (latest as at today).

I have enabled access via ssh (see attached screenshot of Access Control) and also telnet and cli. When I attempt to ssh from a host on the LAN:

ssh -l admin 192.168.10.3

it fails with 

Permission denied, please try again

and in the (services) log I get:

Sun Mar  5 12:55:41 2023 authpriv.warn dropbear[24402]: User 'admin' has invalid shell, rejected

Alternatively, when I try telnet from the same host (with the correct password) it fails with

Connection closed by foreign host.

whereas with the correct password it fails with:

Login incorrect

and invites another login attempt.

Similarly, when I try CLI I get:



mobile3.local login: admin

Password:

Session closed.

I am confident that I am using the correct password. The problem appears to be an "invalid shell" per the log message. What should I do?


Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1604

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1605

1 Answer

0 votes
by anonymous
Hello,

For ssh, cli and telnet the user is root not admin:

ssh -l root 192.168.10.3

Regards
Best answer

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1490

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1604

Notice: Undefined index: title in /var/www/html/qa-theme/Teltonika/qa-theme.php on line 1605
by anonymous
Thanks flebourse, that works!