Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-20-2005, 08:53 PM   #1
Registered: Sep 2004
Location: Pennsylvania
Distribution: Gentoo, Suse, Fedora, Slackware
Posts: 56

Rep: Reputation: 15
xinetd launched ssh port forwarding

Hello. I would like to be able to send email using my school account from off campus, which is normally blocked by their firewall. I have been using port forwarding to accomplish this, for example:
I do <I>ssh -L 25:mailserver:25 me@mailserver</I> to forward local port 25 to port 25 on their mail server. I then configure my email client to use localhost as the SMTP server.

This has been working just fine, however, I would rather not have to establish the ssh connection before being able to send mail. Ideally, I would like to have xinetd listen for connections on port 25, and then open the ssh connection when it detects one. I have been reading about xinetd, but I have not been able to accomplish this. I have been able to make xinetd establish the ssh connection in response to a port 25 access, however, ssh complains that the port is in use and cannot forward it.

I've also had xinetd open the ssh connection on a different port and then redirect the connection to it, which doesn't seem to work either. In this case, I'm not sure why.

If anyone has any suggestions or ideas, I'd really appreciate them.


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
Proftpd can't be launched from xinetd pelletie Linux - Newbie 3 08-26-2008 03:54 PM
Port forwarding for ssh Adriaan Linux - Networking 1 03-08-2004 10:11 AM
Port forwarding just isnt working... Apache / xinetd Please help! liquidskin Linux - Networking 3 09-09-2003 05:12 PM
Help with Port Forwarding for SSH mi6 Linux - Networking 6 07-29-2003 01:46 PM
ssh, and port forwarding Tricky Linux - Networking 3 01-06-2003 08:50 PM

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration