- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: open tunnel for sftp but NOT for ssh?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 02:06 AM
08-28-2007 02:06 AM
open tunnel for sftp but NOT for ssh?
Let me say what I am looking for via example:
outside guy can sftp in as a user to a chrooted account.
outside guy cannot ssh into box no matter how valid the userid;password is.
INSIDE guy can ssh and sftp into the box.
Is there a way to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 02:18 AM
08-28-2007 02:18 AM
Re: open tunnel for sftp but NOT for ssh?
openssh operates all services on port 22 by default.
That doesn't mean you can't operate them on a different port.
There is a rich feature set in the sshd_config and ssh_config files.
We (almost) met your guidelines as follows:
< #PermitRootLogin no
< PermitRootLogin without-password
---
> #PermitRootLogin yes
43c42
< PubkeyAuthentication yes
---
> #PubkeyAuthentication yes
108d106
Wet set up the root user to only permit public key based access. This permits the cluster nodes to send files back and forth and certain systems to jump on and administer.
If you look through the two configuration files you can probably get this done.
I don't know of any firewall that can discren between ssh/scp and sftp. Maybe checkpoint can. That could be worth looking into.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 02:58 AM
08-28-2007 02:58 AM
Re: open tunnel for sftp but NOT for ssh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 03:33 AM
08-28-2007 03:33 AM
Re: open tunnel for sftp but NOT for ssh?
I want to disable all but sftp access from the outside.
I would put this in inetd.sec but it won't work because ssh, sftp and scp are, as you guys say, using the same port.
ssh allow
scp allow
Even though I can ssh into the box from an inside address, I don't want this ability from an outside address. Having a specific shell assigned by userid is nice. I guess I want a shell assigned by userid AND calling ip address?
hmmm. I'm thinking........
Perhaps I should have two ssh's running. The outside ssh is normal, and only allows 2 specified, chrooted users.
The inside ssh is on a different port, and allows any user, but only from inside addresses.
Let me follow through my crazy idea.....
I modify /etc/services to add new sshinside service at port 12345. I update inetd.sec to only allow sshinside from inside addresses.
I update sshd_config on the standard, outside ssh to only allow my two chrooted users via "AllowUsers" line.
Then I can ssh into the box from the inside only by using port 12345 and my ssh-inside. And I can ssh into the box from the outside, but only as one of my two chrooted users.
What to you think? Is this feasable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 06:05 AM
08-28-2007 06:05 AM
Re: open tunnel for sftp but NOT for ssh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2007 06:14 AM
08-28-2007 06:14 AM
Re: open tunnel for sftp but NOT for ssh?
I'll have to start running tests with these ideas.
Thanks.