Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

sftp server with internal-sftp plus chrootdirectory

Subject: sftp server with internal-sftp plus chrootdirectory
Date: Mon, 28 Jul 2008 11:12:30 -0400
Hi, 

I want to setup a sftp ONLY server using openssh with internal-sftp 
and chrootdirectory feature. The sftp does work fine. It did what I 
expect. I can chroot, uploading/downloading,etc. But I want that ssh 
and scp are both denied at user's login, e.g, displaying an error 
message stating 'account not availabe', something like that. But with 
internal-sftp and chrootdirectory, the ssh session will hang, same 
thing for scp. I have tried openssh version 4.9, 5.0, 5.1. They are 
all same behavior. The configuration for sftp part looks like the 
following: 


Subsystem sftp internal-sftp 
Match Group sftponly 
        ForceCommand internal-sftp 
        ChrootDirectory %u 


The user's shell is set to /sbin/nologin.  I tried on Fodera system. 


Any help? 


--xinhuan 


<Prev in Thread] Current Thread [Next in Thread>
  • sftp server with internal-sftp plus chrootdirectory, Xinhuan Zheng <=