1851366 Members
2781 Online
104058 Solutions
New Discussion

Re: restricted sftp2

 
sdeo
New Member

restricted sftp2

hi,
we are trying implement chroot . we have cluster platform. and we modified ssh2d_config to enable chroot env.
also modified passwd file. and in passwd there is newroot directory and shell is /bin/csh.
all lib files are copied to newdirectory.

but when i do sftp it fails with error
/usr/bin/csh file or directory not found.

we have ssh2. any help is appreciated.
4 REPLIES 4
Orhan Biyiklioglu
Respected Contributor

Re: restricted sftp2

You have to have the shell binary csh under the chroot environment. /usr/bin/csh is not accessible by the chrooted ssh server therefore you have to create a usr/bin directory under your chroot directory and put the csh binary in there.

hth
Arunvijai_4
Honored Contributor

Re: restricted sftp2

Hi,

A similar thread of SFTP,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=942006

1.configure the user as a chroot user using the /opt/ssh/ssh_chroot_setup.sh script.

2. Edit /etc/passwd file to change the default shell to /opt/ssh/etc/sftponly

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
sdeo
New Member

Re: restricted sftp2

hi there
yes i do created /bin at chroot directory and coped csh at there.

as i didnt find /opt/ssh/ssh_chroot_setup.sh script.is it available ?

why we should use sftponly shell ?

i followed HP doc. attached.

any updates ?
sdeo
New Member

Re: restricted sftp2

one more this i am having ssh2 not ssh.
is there any difference ?