LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-14-2013, 07:25 AM   #1
leandrobrancher
LQ Newbie
 
Registered: Dec 2013
Posts: 4

Rep: Reputation: Disabled
Red face sftp connection and bash together


Hi

I'm configuring a SFTP server.

My config for users in sshd_config is:

Match User USERNAME
ChrootDirectory /var/ftp/USERNAME
ForceCommand internal-sftp -u 0002
AllowTCPForwarding no
X11Forwarding no

When this config is active, i can't connect bash with user.

When I disable this config, bash ssh its ok

I want to use the two methods to connect with the users, can anybody help me?

Thanks!
 
Old 12-14-2013, 11:48 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by leandrobrancher View Post
When this config is active, i can't connect bash with user.
When I disable this config, bash ssh its ok
That's because you set "ChrootDirectory" in sshd_config and you likely don't have the binaries, dependent libraries and configuration files in the chroot area. See tools like Jailkit and mkJail to help you populate your chroot.
 
Old 12-14-2013, 12:26 PM   #3
leandrobrancher
LQ Newbie
 
Registered: Dec 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Smile

Thanks, I'm going to configure this app and after I put here the result.
 
  


Reply



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
[SOLVED] sftp connection issues mrmnemo Linux - Software 2 10-10-2010 11:00 AM
Automating SFTP in Bash with password? arashi256 Linux - Newbie 4 07-14-2010 07:35 AM
[SOLVED] sftp, connection closed after successful connection. kaz2100 Linux - Software 1 09-30-2009 10:32 PM
Bash and sftp solar05 Linux - Newbie 5 07-01-2009 01:36 AM
SFTP max connection breaktime123 Red Hat 1 02-01-2009 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:08 AM.

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
Open Source Consulting | Domain Registration