From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-140709-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 667A6138010
	for <garchives@archives.gentoo.org>; Mon, 20 Aug 2012 05:53:12 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 15A8B21C053;
	Mon, 20 Aug 2012 05:52:50 +0000 (UTC)
Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181])
	by pigeon.gentoo.org (Postfix) with ESMTP id C85E8E07A7
	for <gentoo-user@lists.gentoo.org>; Mon, 20 Aug 2012 05:50:29 +0000 (UTC)
Received: by weyt57 with SMTP id t57so4177778wey.40
        for <gentoo-user@lists.gentoo.org>; Sun, 19 Aug 2012 22:50:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=from:reply-to:to:subject:date:user-agent:references:in-reply-to
         :mime-version:content-type:content-transfer-encoding:message-id;
        bh=MXGfSr765OlTxe/82jVW61FXUOaDB9TNDYaPbdaZLWY=;
        b=MH83ClHlRrkzI4Ksdt37VMWGVXoQuj6xvLjchtTrEbtCBnkEQDfRdGKc5BZEcgHz+w
         G5FY5zOFnKIadCYuvtGPrcszYldAW2idaph2AbmWLjaYnDqx0JYAl211t7273d60Hx2B
         fJYc51PjCxYcTQI2eZ5ca7+CFnjYCdgzyv2Wpw8FTMC+0ektPf5T4sPYQkOFQVnOdIJp
         9A/hqOVE0RkI4Im7tO6gq98/34pfoG4OtgaqRSgo6equm5ftWzezjAcZjsJEHv8Ry31l
         ydJFccXlSZyi9oJ9a4K8uv4b3CuAxGShyFJXOE/vg7qbOL+dJW5xYT6rxWAqJnG5HPc5
         f8Ig==
Received: by 10.180.83.66 with SMTP id o2mr25955465wiy.14.1345441828840;
        Sun, 19 Aug 2012 22:50:28 -0700 (PDT)
Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230])
        by mx.google.com with ESMTPS id l5sm38971591wix.5.2012.08.19.22.50.26
        (version=SSLv3 cipher=OTHER);
        Sun, 19 Aug 2012 22:50:27 -0700 (PDT)
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] SSH question
Date: Mon, 20 Aug 2012 06:50:29 +0100
User-Agent: KMail/1.13.7 (Linux/3.3.8-gentoo; KDE/4.8.3; x86_64; ; )
References: <20120819233141.56bfa9b5@osage> <CADPrc80EUR+aQH0k0tREtyrZfF+9Vq7rzpoYBBYu1-yuSFcPLQ@mail.gmail.com>
In-Reply-To: <CADPrc80EUR+aQH0k0tREtyrZfF+9Vq7rzpoYBBYu1-yuSFcPLQ@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/signed;
  boundary="nextPart1513694.JYIROU7niT";
  protocol="application/pgp-signature";
  micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <201208200650.58012.michaelkintzios@gmail.com>
X-Archives-Salt: b3acb36d-045b-4502-9ef1-106d7b93fba7
X-Archives-Hash: 6b14d753e8e3da05b0a37fe234cbb537

--nextPart1513694.JYIROU7niT
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable

On Monday 20 Aug 2012 04:48:40 Canek Pel=C3=A1ez Vald=C3=A9s wrote:
> On Sun, Aug 19, 2012 at 10:31 PM, David Relson <relson@osagesoftware.com>=
=20
wrote:
> > G'day,
> >=20
> > I've volunteered to do some data entry for my local bike club.  This
> > involves a java application (jar  file) and a tunnel to a mysql
> > server.  I have detailed PuTTY configuration instructions but haven't
> > yet succeeded in converting them to ssh options.
> >=20
> > The configuration options include:
> >     Seconds between keepalives -- 120
> >     Don't start a shell or command
> >    =20
> >     Forwarded port:
> >         source port number - PORT
> >         Destionation: MACHINE.DOMAIN.COM
> >    =20
> >     Host - IP_Address
> >     Login - userid
> >     Password - pw
> >=20
> > Using "ssh -N userid@IP_Address" gives me a password prompt and no
> > command prompt - both good.
> >=20
> > How do I specify the forwarded port?
>=20
> If I understand correctly, with -L:
>=20
> ssh -L XX:machine2:YY user@machine1
>=20
> This command will connect you to the "machine1" host with user "user",
> and any connection to the port XX to the machine you are running the
> ssh command from, will redirect the connection to the "machine2" host
> in the YY port.

If you want to forward a local port XX to a remote port YY then Canek's=20
suggestion will do what you want, assuming that the correct remote applicat=
ion=20
is listening on port YY.

When you have more than one application this can soon become tedious.  So, =
if=20
you want to set up the remote machine as a SOCKS proxy so that any socks-if=
ied=20
applications on the local machine can connect to the remote SOCKS, then you=
=20
can use:

  ssh -N -D XXXX user@machine1

=46or applications that do not have built in proxy capability you can use e=
=2Eg.=20
proxychains.

HTH.
=2D-=20
Regards,
Mick

--nextPart1513694.JYIROU7niT
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iEYEABECAAYFAlAx0EEACgkQVTDTR3kpaLZ1HwCgkPdG9tcYlhKYKtpSIcXw9j5k
LHgAoNU4Dek3G359nOQmhsF/JFHUFf/G
=NXjG
-----END PGP SIGNATURE-----

--nextPart1513694.JYIROU7niT--