LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 02-10-2009, 11:43 AM   #1
wuhaa
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
SSH Tunneling on Centos


Hi all,

I want to setup a centos box dedicated to ssh tunneling.

I need to restrict the users so they can't do anything else but tunneling (running shell commands, browsing through the file system, seeing other users).

I see tutorials for ssh restricted to sftp and scp, but nothing for restricting users to tunneling only. Even the rssh does not have any mention of this. If I am misunderstanding how this is working, maybe someone can clarify.

If anyone has done this or has any ideas as to how to do this, please offer some advise or a guide that I can follow.

Thanks,
 
Old 02-12-2009, 12:26 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
On the server, set their shell to /usr/bin/true

on the client ssh command line, they have to use an option (I cant remember what it is and my current version of ssh is OOOOOLLLlllddd) that basically doesn't disconnect when true returns 1. It's something along the lines of "dont try and open a shell when you connect"... do a "man ssh" to try and figure out what it is.
 
Old 02-12-2009, 12:30 AM   #3
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
Looks like it's "-N Do not execute a remote command.", so

ssh -L LocalPort:HostestPort -N user@server
 
  


Reply

Tags
centos, ssh, tunnel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SSH Tunneling kpenrose Linux - Networking 4 10-16-2007 06:40 PM
Tunneling with ssh ssherman Linux - Networking 3 07-16-2007 03:13 AM
tunneling thru ssh c9876543210 Linux - Networking 1 07-21-2005 01:45 AM
X tunneling with SSH phekno Linux - Networking 3 05-31-2005 11:43 AM
Tunneling through SSH rech Slackware 1 11-28-2003 09:21 PM


All times are GMT -5. The time now is 10:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration