HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH Port redirection
Operating System - HP-UX
1833852
Members
1849
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
05-17-2003 04:55 AM
05-17-2003 04:55 AM
I'm currently using ssh to forward http over a secure channel. However, ssh seems to listen on all interfaces when using the command below.
ssh -b Local_IP -N -L 80:remote_server:80 -f -g
The problem is I run several interfaces on the server and only wish for SSH to listen on a single interface. I've also tried remote forwarding but could only get ssh to listen on the local loopback.
HP-UX Secure Shell 3.1
HP-UX 11.11
Thanks,
Gary
ssh -b Local_IP -N -L 80:remote_server:80 -f -g
The problem is I run several interfaces on the server and only wish for SSH to listen on a single interface. I've also tried remote forwarding but could only get ssh to listen on the local loopback.
HP-UX Secure Shell 3.1
HP-UX 11.11
Thanks,
Gary
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2003 05:03 AM
05-17-2003 05:03 AM
Re: SSH Port redirection
Gary
This might help:-
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x44a03a1c04ffd61190050090279cd0f9,00.html
Paula
This might help:-
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x44a03a1c04ffd61190050090279cd0f9,00.html
Paula
If you can spell SysAdmin then you is one - anon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2003 09:59 PM
05-17-2003 09:59 PM
Solution
Just to clarify Paula's answer, the ssh_config manpage states:
GatewayPorts
Specifies whether remote hosts are allowed to connect to local forwarded ports. By default, ssh binds local port forwardings to the loopback address. This prevents other remote hosts from connecting to forwarded ports. GatewayPorts can be used to
specify that ssh should bind local port forwardings to the
wildcard address, thus lowing remote hosts to connect to forwarded ports. The argument must be ``yes'' or ``no''. The default is ``no''.
It seems that the current version os openssh, at least, does not allow you to specify the interface that remote hosts can connect to for port forwarding.
The -b option only tells openssh what interface to use when connecting to remotehost.
Using a tool like ipfilter, you can control what interface or ip address is allowed to receive inbound traffic on port 80, which ssh will then forward to your remote host.
GatewayPorts
Specifies whether remote hosts are allowed to connect to local forwarded ports. By default, ssh binds local port forwardings to the loopback address. This prevents other remote hosts from connecting to forwarded ports. GatewayPorts can be used to
specify that ssh should bind local port forwardings to the
wildcard address, thus lowing remote hosts to connect to forwarded ports. The argument must be ``yes'' or ``no''. The default is ``no''.
It seems that the current version os openssh, at least, does not allow you to specify the interface that remote hosts can connect to for port forwarding.
The -b option only tells openssh what interface to use when connecting to remotehost.
Using a tool like ipfilter, you can control what interface or ip address is allowed to receive inbound traffic on port 80, which ssh will then forward to your remote host.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP