scp/sftp & CWD
Brought to you by:
xystrus
From: MAL <ma...@ko...> - 2003-05-19 18:14:23
|
Hi ppl, Is there any way to get sftp and/or scp to change to a different starting directory on connect. I don't mean from a user's point of view.. I know sftp <user@host:/dir> works.. I mean on the server end. With bash, I used to set each user's .bashrc/.bash_profile to read: cd /www/<user> export PWD='/www/<user>' and that did the trick in just about every scp/sftp client I tested. How can I get this effect with rssh? The system in question has redhat's patched openssh 3.1p1-5, which I assume supports ~/.ssh/rc and/or ~/.ssh/environment, but adding the above commands to either of those yeilded nothing. Anyone? :) MAL |