Solved

SFTP Configuration on Ubuntu OpenSSH

Posted on 2008-06-19
6
6,523 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
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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now