hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : chrooted SFTP
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

chrooted SFTP

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-01-2010, 11:57 AM
kselva kselva is offline
Junior Guru Wannabe
 
Join Date: Apr 2009
Posts: 74

chrooted SFTP


Hi All,

I have implemented sftp(through ssh) and blocked pureftp in my cpanel linux vps for security resons . Now i am facing issue with sftp. The issue is that a user when logins into server through sftp,he gets permission to traverse to / directory . So the user can now able to view logs in /var/logs and also can view files in /proc direcory . So i want to chroot the user for their sftp login . I tried rssh but i got the following error :

Feb 1 21:24:59 host rssh[13889]: chroot cmd line: /usr/libexec/rssh_chroot_helper 2 "/usr/libexec/openssh/sftp-server"


Please tell how can i impliment chroot sftp or tell the way i block the access of user to / directory in sftp.

Thanks in advance....


Last edited by kselva; 02-01-2010 at 12:02 PM.
Reply With Quote


Sponsored Links
  #2  
Old 02-02-2010, 09:18 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,492
Was normal shell enabled for the client OR Jailed shell? With Jailed shell a client cannot traverse out of his home directory, so enable it and see if it works in similar fashion for sftp as well.

__________________
Linux WebHosting Solutions
http://linuxhostingsupport.net/blog/
MSN: madaboutlinux@hotmail.com

Reply With Quote
  #3  
Old 02-02-2010, 10:30 AM
kselva kselva is offline
Junior Guru Wannabe
 
Join Date: Apr 2009
Posts: 74
Thanks for your reply...

I have given jailshell(/usr/local/cpanel/bin/jailshell) to a user , but when that user logins into server through ssh or through SFTP ,then that can traverse to / directory and view all files as in the normal shell

Reply With Quote
Sponsored Links
  #4  
Old 02-16-2010, 11:50 AM
kselva kselva is offline
Junior Guru Wannabe
 
Join Date: Apr 2009
Posts: 74
hi,

I have finally got the solution for chroot SFTP --- i have installed proftpd with sftp module .

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chrooted user just for mysql access over SSH ckissi Hosting Security and Technology 4 09-29-2009 02:34 PM
Applications in a chrooted shell Adonis Hosting Security and Technology 9 05-06-2008 07:45 AM
SFTP? Ophelus Web Hosting 1 01-23-2008 03:47 PM
Sftp MikeM Hosting Security and Technology 3 12-15-2003 10:18 AM
chrooted SSH daemons ( without messy file/dir structure ) euselect Hosting Security and Technology 1 03-02-2003 05:56 PM

Related posts from TheWhir.com
Title Type Date Posted
Cirrus Tech Offers Expanded Support with All VPS Hosting Plans Web Hosting News 2013-02-13 15:10:54
Web Host Lightning Base Launches Version 2 of WordPress Hosting Web Hosting News 2012-02-01 12:29:53
Q&A: Jon Schwenn of Mac Mini Vault on His Apple TV Web Server Experiment Web Hosting News 2011-05-31 14:26:29


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?