From owner-freebsd-questions Fri Nov 15 11:57: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ECD937B401 for ; Fri, 15 Nov 2002 11:57:02 -0800 (PST) Received: from mail-relay1.yahoo.com (mail-relay1.yahoo.com [216.145.48.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE5D243E42 for ; Fri, 15 Nov 2002 11:57:01 -0800 (PST) (envelope-from adrianm@yahoo-inc.com) Received: from ROCK (priv82-108.buenosaires.corp.yahoo.com [172.24.82.108]) by mail-relay1.yahoo.com (Postfix) with SMTP id 8BED08B608; Fri, 15 Nov 2002 11:56:59 -0800 (PST) Message-ID: <002201c28ce1$27298d40$6c5218ac@ROCK> From: "Adrian Mugnolo" To: "Joshua Lokken" , References: Subject: Re: SSH through a firewall Date: Fri, 15 Nov 2002 16:56:54 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, You can set up por forwarding for ssh connections to 10.0.0.2 as follows: ssh -L 2022:10.0.0.2:22 12.225.249.250 And while that connection remains open, you can do: scp -P 2022 file.txt localhost: Please note that the requested password or key will be the one on the destination host, not the gateway. Also, that you can do multiple port forwardings at once: ssh -L 2022:10.0.0.2:22 -L 2122:10.0.0.3:22 -L 2222:10.0.0.4:22 12.225.249.250 HTH ----- Original Message ----- From: "Joshua Lokken" To: Sent: Friday, November 15, 2002 3:58 PM Subject: SSH through a firewall > Hi, folks > > I often transfer files to my home machines from work using scp. Currently, > if I want to move a file to a machine on my LAN, I first have to copy the > file to a user home dir on the gateway box, then recopy it from the gateway > to the internal box. How do I avoid this extra step? eg, > > 130.94.160.46 ------------------> 12.225.249.250 --------------------> > 10.0.0.2 > (remote machine) (gateway) > (destination) > > I have the proper keys in the proper places and the hosts files are OK. I > appreciate any help. Please cc me, as this address is not subscribed to the > list. Thanks! > > -- > Best Regards, > > Joshua Lokken > OMIC Portland Branch > inspector.us@omicnet.com > 503 807 6538 > -------------------------> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message