sshrc not working when using restricted shells on HP-UX

Darren Tucker dtucker at
Wed Mar 1 23:44:23 EST 2006

Tob_Sch at wrote:
[about restricted shells]
> Here's the error message during starting the connection:
> sh: /bin/sh: The operation is not allowed in a restricted shell.

I would interpret that as one of the commands in the sshrc failing,
rather than parsing of the file itself failing.   What's in sshrc?  Does
putting "set -x" at the top of sshrc provide any enlightenment?

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

More information about the openssh-unix-dev mailing list