Re: Forwarding of SSH and FTP (22 and 21)
- From: comphelp@xxxxxxxxx (Todd H.)
- Date: 18 Mar 2007 09:00:42 -0500
"JsD" <JPyObjCDude@xxxxxxxxx> writes:
... Perhaps if you fill in some more background and details
Ignoring FTP, for the moment, let's just tackle tunneling a secondary
ssh session.
I have two servers in a secure network one is FreeBSD running ssh that
is accesible via the internet. Server 2 is not available on the
internet also has ssh available.
I want to open an ssh session to the FreeBSD SSH server and then use
port forwarding to access sshd on Server 2. This way I can use sftp to
transfer files to my client to Server 2 without having to use VPN.
When using PUTTY to do a local port forward to Server 2 port 22 to my
local client it works fine when the local port is 22. If I forward to
my local port 51022 (or any other) it does not work.
Tell us about your local machine then. It it possible you're running
say firewall software that is preventing that port from being opened
or accessed?
Alternately, download cywin.com utilities on your local machine and be
sure to specify openssh in the packages and then try this from the
cygwin bash shell:
localbox$ ssh -L51022:IP_OF_SERVER2:22 user@xxxxxxxxxxxxxxxxxxx
To verify for 51022 listening, do
localbox$ netstat -an | grep 51022
and you should see 51022 LISTENING for connections. If the
connection works then you can rule out local client config or network
issues and then focus on how to get putty to do the equivalent of the
above.
I would rather not use local port 22 since I may need to use that port
for real ssh access to my client from any other box.
--
Todd H.
http://www.toddh.net/
.
- Follow-Ups:
- References:
- Forwarding of SSH and FTP (22 and 21)
- From: JsD
- Re: Forwarding of SSH and FTP (22 and 21)
- From: Todd H.
- Re: Forwarding of SSH and FTP (22 and 21)
- From: JsD
- Forwarding of SSH and FTP (22 and 21)
- Prev by Date: Re: Forwarding of SSH and FTP (22 and 21)
- Next by Date: Re: Forwarding of SSH and FTP (22 and 21)
- Previous by thread: Re: Forwarding of SSH and FTP (22 and 21)
- Next by thread: Re: Forwarding of SSH and FTP (22 and 21)
- Index(es):
Relevant Pages
|
|