- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: public key auth. by SFTP does not work on chro...
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
01-20-2006 08:47 AM
01-20-2006 08:47 AM
public key auth. by SFTP does not work on chrooted accounts
I am using an SSH 3.91 server on HP-UX 11i.
I have used the HP provided script, ssh_chroot_setup.sh, to set up an chrooted sftp account.
My problem is that when I sftp into the account I am only being authenticated for passwd, which if I provide I am successfully login in. But, I want to use public key authentication instead. Is this doable? Where should the .ssh dir go?
I tried adding .ssh under the chrooted home account but sftp does not seem to be seeing it.
regards,
haralambos.
PS. The ssh_chroot_setup.sh, even the one that comes with HPUX 4.2p1 seems to be not seting the chrooted dir structures right. It gives 777 perms to a lot of dirs, the group file is not set, the passwd file does not contain the user's entry & the user does not own his chrooted home dir. All of this I fixed and I can use sftp just fine; except of course the authentcation part.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2006 09:57 AM
01-20-2006 09:57 AM
Re: public key auth. by SFTP does not work on chrooted accounts
I would guess that the .ssh2 directory should go into the newhome for the chrooted user.
Say the user home directory after chrooted conenctionis /new_home
the .ssh2 directory should go under /new_home
If the /new_home is "/" then the .ssh2 will be /.ssh2 for the chrooted user. Remember "/" in this situation is the chrooted root for the user and not the real "/".
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 02:07 AM
01-23-2006 02:07 AM
Re: public key auth. by SFTP does not work on chrooted accounts
So, I have created /newroot/home/sftpaccnt/.ssh and have added the authorized_keys file in there. The sftpaccnt user owns the authorized file which has 600 perms on it.
So, now my chrooted account is first being prompted for public key authentication and passwd authentication is the fallback one.
thanks for your input.
Haralambos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 02:10 AM
01-23-2006 02:10 AM
Re: public key auth. by SFTP does not work on chrooted accounts
Just amazed though that the ssh_chroot_setup.sh is not creating dirs and files with correct perms and data.
regards
ps. Another thing that I did today is to restart sshd, something that I did not do after I created the chrooted sftp accnt. Even though I do not thing that this was the problem, I would still like to mention it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 02:21 AM
01-23-2006 02:21 AM