Am 27.03.13 21:35, schrieb Markus Moeller:
This is interesting.
Obviously you changed the default user shell by chsh. On
http://serverfault.com/questions/106722/choosing-the-shell-that-ssh-uses
I found
'man chsh changes shell, does not always work
Alternatively, you can stick exec /bin/zsh in your bash login
script.this will replace bash instance with your shell.
Or you can do ssh host "zsh -l"
'
to use zsh but I think this is not possible for a restricted shell. You
could simply exit the shell and have sh again. (I did'nt try it out).
Maybe you can find a solution in man sshd if you search for
LOGIN PROCESS
and figure out what is going wrong.
A second possible solution might be to use PubKeyAuthentication for
ruser and to force the key to load rksh. Read man sshd and search for
AUTHORIZED_KEYS FILE FORMAT
A third possible solution might be to use
ForceCommand
in /etc/sshd_config inside a Match block.
Hope it helps.
Wolfgang