- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- chroot-ed ssh, scp and sftp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2006 08:36 PM
02-06-2006 08:36 PM
chroot-ed ssh, scp and sftp
i am trying to create a chroot-ed environment for ssh, scp and sftp on a hpux 11.11 system using hp's ssh (A.04.10.004). i used the provided ssh_chroot_setup.sh script - ssh and sftp work, however both do not show the user id/group id of files and directories when the ls command is used.
additionally scp authenticates but fails after that with:
unknown user 111
lost connection
the etc directory in the chroot-ed environment does contain: passwd, group (i copied that manually), pam.conf and nsswitch.conf and the files are readable for everyone (444).
any hints on what the problem could be will be greatly appreciated.
greetings,
Stoyan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2006 08:39 PM
02-06-2006 08:39 PM
Re: chroot-ed ssh, scp and sftp
If you chroot ssh and thereby cut off its connection to /etc/passwd the results you are getting are expected.
You must provide alternatives to what you are cutting off. Usually this involved copies of binaries.
Can you provide your configuration file and the method you used the chroot etc into the environment? That is probably the key to solving this problem.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2006 09:06 PM
02-06-2006 09:06 PM
Re: chroot-ed ssh, scp and sftp
i have checked the /opt/ssh/README.hp file to see if all binaries and libraries mentioned there are properly copied by the script. all the binaries were copied correctly.
i have not done any modification to the sshd_config file.
thank you,
Stoyan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 01:56 AM
02-07-2006 01:56 AM
Re: chroot-ed ssh, scp and sftp
greetings,
Stoyan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 03:11 PM
02-07-2006 03:11 PM
Re: chroot-ed ssh, scp and sftp
"public key auth. by SFTP does not work on chrooted accounts" on 01/20/06
It ends up that you can use the HP provided script /opt/ssh/ssh_chroot_setup.sh to create the chrooted accounts. It works well when creating the accounts and copying the corerct binaries/libs but I have experienced the same problem as you did with acconts/groups.
It ends up that every chrooted accnt has its own provide passwd & group files which the script does not bother to update when a new account is created for example. So you will have to manually copy and paste those new entries from the /etc/passwd & /etc/groups file to the corresponding ones in the private chrooted env.
It also turns out that the private copies of these files do NOT need all the account and group info that is contained within the original files. All they need is the chrooted accnts info, in passwd file and info for root, sys, bin groups (and the chrooted users group) in the group file.
Finally, the script gives for some reason 777 perms to some dirs within the chrooted environment which I had modified as I do think that world write access is actually needed.
Regards, Haralambos