Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th April 2008, 04:44 PM
cwebster Offline
Registered User
 
Join Date: May 2005
Location: NC
Age: 58
Posts: 104
Fedora 8 Restricted SSH (rssh) package available?

Is there an rssh server RPM or SRPM available for Fedora 8 on any of the repos?

I originally posted this topic in the "General" forum but this forum felt like a more appropriate place.

I've only been able to find the SRPM and source tar-ball at http://www.pizzashack.org/rssh/. I downloaded the SRPM but was hoping to find it in one of the Fedora repos. Also, there doesn't appear to have been any development on this for over 2 years. If the project is maintained elsewhere or there is a better alternative, would someone let me know?

I need to allow only VNC tunnelling through SSH (NO file transfers) for certain users over one interface but unrestricted ssh for other users on both interfaces of a gateway machine. I figure I can configure both rsshd and sshd to run together on different ports to allow use of restricted ssh for some users and unrestricted ssh for others.

We use MIndTerm (Java SSH) client on our Windoze boxes and openssh on Linux. I've tested VNC tunneling Win<->F8 and RHEL4/RHL9<->F8 using DSA key pairs and it works well. The problem is that this also gives them access to a shell. I cannot permit file transfers over these tunnels, only RFB (VNC) streams. I figure using RSSH to a chrooted environment with no scp sftp available would meet our needs.

Thanks for any pointers or suggestions.

./Cal
__________________
./Cal
Reply With Quote
  #2  
Old 9th April 2008, 05:35 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
Please prove me wrong, but once the restricted users have access to the remote desktop there are dozens of tools and ways to send the remote files to their local systems. They could use client ftp, ssh or even nc. Even cut-n-paste from a screen, de-/en-coding binaries with btoa if they wished

It's an odd requirement to give users only remote-only access to files. No offense but is sounds more like a case of overbearing administration rather than a real security need. Or else I don't understand your problem.

Could you explain your problem/goals/motivations rather than your proposed solution (which can't be very effective I think).
--
As I understand it the OpenSsh sshd daemon requires the user have a shell login at least to create the initial command sequence. So even if I only foraward a port, he initial channel to a shell exists (tho' it doesn't create a pseudo-teminal instance). So I belieeve that the openSsh daemon will not provide the restrictions you suggest. You may be able to use a restricted shell for the users and thus limit their access. Alternatively you should seek out another ssh server, as you have.
Reply With Quote
  #3  
Old 9th April 2008, 06:57 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
Quote:
Originally Posted by cwebster
Is there an rssh server RPM or SRPM available for Fedora 8 on any of the repos?

I originally posted this topic in the "General" forum but this forum felt like a more appropriate place.


I've only been able to find the SRPM and source tar-ball at http://www.pizzashack.org/rssh/. I downloaded the SRPM but was hoping to find it in one of the Fedora repos. Also, there doesn't appear to have been any development on this for over 2 years. If the project is maintained elsewhere or there is a better alternative, would someone let me know?

I need to allow only VNC tunnelling through SSH (NO file transfers) for certain users over one interface but unrestricted ssh for other users on both interfaces of a gateway machine. I figure I can configure both rsshd and sshd to run together on different ports to allow use of restricted ssh for some users and unrestricted ssh for others.

We use MIndTerm (Java SSH) client on our Windoze boxes and openssh on Linux. I've tested VNC tunneling Win<->F8 and RHEL4/RHL9<->F8 using DSA key pairs and it works well. The problem is that this also gives them access to a shell. I cannot permit file transfers over these tunnels, only RFB (VNC) streams. I figure using RSSH to a chrooted environment with no scp sftp available would meet our needs.

Thanks for any pointers or suggestions.

./Cal
I have deleted your double post as it is against forum rules ! , Please don't double post again !
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
  #4  
Old 9th April 2008, 07:11 PM
cwebster Offline
Registered User
 
Join Date: May 2005
Location: NC
Age: 58
Posts: 104
Thank you for taking an interest, stevea. I can understand why this sounds like an "odd requirement" and might be characterized as "overbearing" to an outsider. I'll explain so you can understand my position.

Software developers and engineers on an isolated network need Internet access to conduct research. There are Information Assurance rules in place that prohibit direct connectivity to the Internet. No file transfers at all are permitted, only simple keyboard, video, mouse (RFB protocol - VNC) traffic and only through ssh tunnels.

Instead, there is a single Fedora 8 machine separated from the isolated network by a firewall that only permits ssh traffic coming from the private side to pass only to the single Fedora machine's private interface on the public side of the firewall. The Fedora machine's public interface permits only outbound traffic to the Internet through a proxy server. IP forwarding is disabled.

We have the tunneled VNC connections working but we need to restrict the ssh connections so that only the tunneled ports can be maintained without any shell or ssh commands available. I want the users to use a restricted account to connect to sshd on the Fedora machine to setup the ssh tunnel. Using VNC, they can then open an X session using their normal Linux account. Copying and pasting text from the VNC window does not present a security risk for us.

I can certainly understand your moral objections to extreme IA policies such as I have described. However, we have to work within the rules if these developers and engineers are to have any Internet access at all.
__________________
./Cal
Reply With Quote
  #5  
Old 9th April 2008, 07:15 PM
cwebster Offline
Registered User
 
Join Date: May 2005
Location: NC
Age: 58
Posts: 104
Quote:
Originally Posted by leigh123@linux
I have deleted your double post as it is against forum rules ! , Please don't double post again !
My apologies. I suppose I should have deleted the post to the "General" forum after opening this one. I usually post to only one forum. Thank you for the reminder.
__________________
./Cal
Reply With Quote
  #6  
Old 9th April 2008, 07:31 PM
cwebster Offline
Registered User
 
Join Date: May 2005
Location: NC
Age: 58
Posts: 104
I have downloaded the SRPM for rssh from http://www.pizzashack.org/rssh/ since I could find the binary RPM in no Fedora repositories. I built, installed, and setup a basic configuration including a chroot jail. I'm now trying various configurations to see if I can setup a ssh tunneled port like the one below without permitting anything else.

Example of client command to open tunneled port on Linux:
Code:
ssh -l kvm -i .ssh/id_dsa_kvm -L 15973:127.0.0.1:5973 192.168.1.100
./Cal
__________________
./Cal
Reply With Quote
  #7  
Old 15th April 2008, 01:22 PM
cwebster Offline
Registered User
 
Join Date: May 2005
Location: NC
Age: 58
Posts: 104
For anyone looking at this thread in the future, rssh won't help either because it will not allow tunneling any ports.

"stunnel" is exactly what I need for protecting services that have no other method of encryption. It uses SSL to tunnel arbitrary protocols between machines.
__________________
./Cal
Reply With Quote
Reply

Tags
fedora, package, restricted, rssh, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nVidia restricted Drivers? FX 5200, Fedora 10 (used linux for a year, new to fedora) tombom62 Hardware & Laptops 51 3rd April 2009 04:42 PM
Restricted access canman539 Servers & Networking 1 23rd January 2007 12:01 AM
how do I get sftp? openssh or rssh? agenol Security and Privacy 2 15th August 2005 07:53 PM
Restricted BASH? masterlodi Using Fedora 4 31st May 2005 04:42 PM


Current GMT-time: 16:17 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat