LinuxQuestions.org
Visit Jeremy's Blog.
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 06-02-2009, 09:54 AM   #1
mkono
Member
 
Registered: May 2008
Posts: 50

Rep: Reputation: 16
Restricting SSH but allowing SCP


All,
I am running RHEL5 in a WebSphere environment and have decided to restrict SSH access to a particular generic user. However I need that user to be able to SCP files from one server to another.

I guess the problem is that SSH and SCP use the same port (22) and scp requires an ssh shell connection to perform an scp of files.

Does anyone have any ideas on how to restrict SSH for a particular user, but allow them to SCP?

Any help would be greatly appreciated.

Thanks,
mkono
 
Old 06-02-2009, 10:00 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Take a look at scponly

Quote from the above site:
Quote:
scponly is an alternative 'shell' (of sorts) for system administrators who would like to provide access to remote users to both read and write local files without providing any remote execution priviledges. Functionally, it is best described as a wrapper to the tried and true ssh suite of applications.
Hope this helps.
 
Old 06-03-2009, 08:04 AM   #3
Sm1ler
Member
 
Registered: Apr 2004
Location: UK
Distribution: Fedora Core (all), Knoppix, RHEL, Centos, Debian
Posts: 100

Rep: Reputation: 16
I would highly recommend this help file from Centos on securing ssh. I would use Public private Key and disable password authentication then just import the key for the one user you want to be able to use the service, job done!

http://wiki.centos.org/HowTos/Networ...ecuring)|(ssh)
 
  


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
Chroot SSH problem: ssh working, not SFTP & SCP. NaCo Linux - Security 3 02-01-2009 02:23 AM
ssh : allowing only scp and 1 command oudoubah Linux - Security 2 11-28-2008 03:45 PM
restricting ssh guy_ripper Linux - Security 5 06-20-2007 09:20 PM
Restricting SSH logins. bullium Linux - Security 3 05-10-2005 01:15 AM
restricting ssh macie Linux - Networking 1 12-09-2003 11:34 PM

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

All times are GMT -5. The time now is 11:44 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