Solved

SFTP Configuration on Ubuntu OpenSSH

Posted on 2008-06-19
6
6,536 Views
Last Modified: 2013-11-15
I want to configure sftp with ubuntu. I have it install and working with a regular user. I would like to make it so the user can only sftp and nothing else. I would also like to set the users home dir to /home/share

How can I do this?
0
Comment
Question by:jjmartineziii
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 4

Expert Comment

by:albuitra
ID: 21825212
modify the user home in /etc/passwd
0
 
LVL 12

Author Comment

by:jjmartineziii
ID: 21825873
thanks albuitra.

how can i prevent them from leaving the userhome? and accessing /etc/
0
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 21828871
what ftp server are you using..you can jail users into their home dirs using the ftp server.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 12

Author Comment

by:jjmartineziii
ID: 21830897
I am using openssh-server sftp. Can you do that with that one? I can't use a regular ftp, it has to be sftp.
0
 
LVL 4

Expert Comment

by:albuitra
ID: 21830928
0
 
LVL 40

Accepted Solution

by:
noci earned 500 total points
ID: 21832806
Are you aware of the scponly package?
scponly can also handle sftp access as it is a special shell for restricting ssh access, see:
http://www.sublimation.org/scponly/

for more info
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question