Quote:
Originally Posted by jca002
I have gotten around this now by checking the value of ${SHELL} and if it is /bin/ksh then I have to do (exec -a "-ksh" ${SHELL}) and if ${SHELL} is /bin/bash then I have to do (exec -l ${SHELL}).
|
You should be able to get a login-type shell using the following:
Code:
ForceCommand=exec ${SHELL} -l
All three, bash, ksh, and zsh, accept the -l option and
should behave the same way with that. However, as-is, that will interfere with SFTP.
Edit: this gets a little closer:
Code:
ForceCommand=/usr/lib/openssh/sftp-server || exec ${SHELL} -l
They must first type something throwaway to get to the shell. However, it suggests there is a solution.