HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- ssh tunnel in inittab
Operating System - Linux
1828504
Members
2460
Online
109978
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
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
06-02-2009 07:44 PM
06-02-2009 07:44 PM
ssh tunnel in inittab
Hi All
I'm having some issues with an ssh tunnel.
I have a basic perl server that listens on port 8890, it accepts a command and runs it locally and returns the output. I also have a perl client that takes hostname, port, command as arguments. When I run the client with port 8890 it connects and runs the command.
I am testing on the local machine for now.
Tunnel is created with:
ssh -fN -L 7777:localhost:8890 root@localhost
Then the client connects to 7777 and also works fine.
If I put the ssh command in to the inittab with the "-f" init looses it and keeps respawning. So the command in inittab is ssh -N -L 7777:localhost:8890 root@localhost.
This does not allow the client to connect.
I added the -f back to the inittab and I get 10 of the ssh processes fire off, but the client works again.
why? is there some other ssh switch for inittab?
I eventually want the server program on 4 machines, with ssh tunnels from another machine so that the client can just fire commands down the relevant port locally, rather than having to ssh in and run the command each time.
Any ideas appreciated.
Mark
I'm having some issues with an ssh tunnel.
I have a basic perl server that listens on port 8890, it accepts a command and runs it locally and returns the output. I also have a perl client that takes hostname, port, command as arguments. When I run the client with port 8890 it connects and runs the command.
I am testing on the local machine for now.
Tunnel is created with:
ssh -fN -L 7777:localhost:8890 root@localhost
Then the client connects to 7777 and also works fine.
If I put the ssh command in to the inittab with the "-f" init looses it and keeps respawning. So the command in inittab is ssh -N -L 7777:localhost:8890 root@localhost.
This does not allow the client to connect.
I added the -f back to the inittab and I get 10 of the ssh processes fire off, but the client works again.
why? is there some other ssh switch for inittab?
I eventually want the server program on 4 machines, with ssh tunnels from another machine so that the client can just fire commands down the relevant port locally, rather than having to ssh in and run the command each time.
Any ideas appreciated.
Mark
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2009 07:55 PM
06-02-2009 07:55 PM
Re: ssh tunnel in inittab
found it after another look on google
ssh -nNTx -L etc etc
ssh -nNTx -L etc etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2009 03:58 PM
06-03-2009 03:58 PM
Re: ssh tunnel in inittab
solution above.
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP