LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Closed Thread
  Search this Thread
Old 05-19-2011, 11:25 AM   #1
chesschi
Member
 
Registered: May 2011
Posts: 41

Rep: Reputation: 0
[HELP!!!] openssh sftp root directory


Hi all,

I am trying to setup openssh with sftp only (disable ssh). However, I am not sure how to set that up. That is what I am trying to do:

In /etc/ssh/sshd_config:Subsystem sftp internal-sftp
Match Group sftpAllow
ForceCommand internal-sftp
ChrootDirectory /home/userA/sftproot
In /etc/group
sftpAllow:x:595:userA

When I do a list, it shows:
drwxr-xr-x 2 userA users 4096 May 19 14:33 sftproot

When I use psftp.exe in windows to connect to sftp server using userA account, it shows
"Fatal: Network error: Software caused connection abort"

However, if i comment the line ChrootDirectory, I can access the server via sftp with and root directory is set to /home/userA.

Did I do something wrong?

Thanks a lot!!!
 
Old 05-19-2011, 12:03 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,032

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

continue here:
http://www.linuxquestions.org/questi...ectory-881610/
 
1 members found this post helpful.
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
openssh sftp root directory chesschi Linux - Networking 3 05-20-2011 06:44 PM
OpenSSH 4.7+ chroot-ed SFTP and CentOS 5.3 iSpaZZZ^ Linux - Software 2 06-04-2010 09:51 AM
openssh sftp johnh10000 Linux - Software 1 05-28-2010 03:13 PM
openssh and sftp problem saifkhan123 Linux - Server 4 09-15-2009 01:52 AM
dont want sftp on OpenSSH e1000 Linux - Software 3 12-08-2004 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration