Solved

SFTP Configuration on Ubuntu OpenSSH

Posted on 2008-06-19
6
6,540 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

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.

Question has a verified solution.

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

Suggested Solutions

We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
Secure Shell (SSH) is a network protocol for secure data communication, mainly used to administer remote Unix / Linux servers via command line. But it also allows the user to open a secure tunnel between a client and a server where he can send any k…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

734 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