toltec icon indicating copy to clipboard operation
toltec copied to clipboard

Changing shell to anything but /bin/sh and /bin/bash breaks SSH

Open mattfbacon opened this issue 1 year ago • 1 comments

The fish package doesn't add fish to /etc/shells which causes dropbear to reject new SSH sessions with "permission denied" because User 'root' has invalid shell, rejected. The package should add fish to /etc/shells.

mattfbacon avatar Dec 30 '23 09:12 mattfbacon

We'll have to sort out how to add values to /etc/shells automatically for all the different shells in entware. That, or have something on startup that forces the shell for root to be /bin/sh and then makes sure to add code to launch the other shell to the user profile.

Eeems avatar Dec 30 '23 09:12 Eeems