History and autocompletion do not work in SSH PAM session (openssh-server, libpam-ldap and nscd)
Solution 1:
Probably the user's default shell is set to /bin/sh instead of a more full-featured interactive shell such as /bin/bash, as disussed here:
Arrow keys, Home, End, tab-complete keys not working in shell
If your (local) system have the nslcd-utils package, there should be a chsh.ldap
command for this, equivalent to the chsh
command for local users. If not, you may need to talk to the LDAP administrator.
As a last resort, you can always edit your existing default shell's startup file, for example ~/.profile
, to replace itself with a shell of your choice (exec /bin/bash
). Just be careful not to end up in an infinite loop - in particular don't exec
a bash login shell from ~/.profile
unless you also have a ~/.bash_profile
.