Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jan 24, 2012 9:57 pm 
Offline
Newbie

Joined: Tue Jan 24, 2012 9:53 pm
Posts: 2
Location: Canada
I am trying to create a filetransfer group with several users under it, and successfully do so. However, whenever I enable

Code:
Match group filetransfer
       ChrootDirectory %h
       X11Forwarding no
       AllowTcpForwarding yes
       ForceCommand internal-sftp


and try to connect with FileZilla, it spits out this error:

Quote:
Error: Connection reset by peer
Error: Could not connect to server


Is there any reason that it should block me, or is it a problem with FileZilla?[/quote][/code]


Top
   
 Post subject:
PostPosted: Tue Jan 24, 2012 10:51 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Run the daemon in debug mode, possibly on a different port, and then try to ssh as a test user on that port.

eg
Code:
/usr/sbin/sshd -ddd -p 2222


And then in another window
Code:
ssh testuser@localhost -p 2222


You should see the reason for the error

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Tue Jan 24, 2012 11:00 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
PS: http://www.debian-administration.org/articles/590 might help

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
PostPosted: Tue Jan 24, 2012 11:03 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
Are you folder/file permissions correct? Can you provide the output of the following commands:

ls -lA /home
ls -lA /home/<jailed_user>

-Tim


Top
   
 Post subject: Solved It.
PostPosted: Fri Jan 27, 2012 2:52 pm 
Offline
Newbie

Joined: Tue Jan 24, 2012 9:53 pm
Posts: 2
Location: Canada
Thanks sweh, I ran it in debug mode and my permissions were screwed up. :D


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group