Re: OT: port forwarding with ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/23/2016 3:10 PM, Mike Wright wrote:
usage: ssh -L [bind_address:]port:host:hostport]

Here's what I'm trying:

sudo ssh -L lo.cal.ip.adx:11110:rem.ote.ip.adx:110


I successfully use the following to tunnel VNC over SSH so I can securely connect to a remote server at a hosting facility using VNC:

ssh -f -L 25901:127.0.0.1:5901 user@remotehost sleep 10; vncviewer 127.0.0.1:25901:1

If I had to adapt it to your example, I would try this:

ssh -f -L 11110:127.0.0.1:110 user@remotehost sleep 10; <whatever command you need to use to get your email>

The "-f" makes ssh act in the background and the "sleep 10" gives the ssh tunnel 10 seconds to actually connect before it bails.  The next statement should execute whatever process you need to execute but note that you want to execute it against the local host's loopback address, not the remote system's address.  You actually target the remote system's IP address using the "user@remotehost" section.


Tom
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux