Re: SSH through a firewall
On Friday 15 November 2002 17:39, Joshua Lokken wrote: -Original Message- From: Adrian Mugnolo [mailto:[EMAIL PROTECTED]] Sent: Friday, November 15, 2002 11:57 AM To: Joshua Lokken; [EMAIL PROTECTED] Subject: Re: SSH through a firewall 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 :10.0.0.4:22 12.225.249.250 HTH It does, thanks. The work machine is a Winbox, and I'm using PuTTY. I'm not sure how to get this setup to work, but I'll keep at it! PuTTY has a forwarding section that should allow you to forward local ports. Joshua To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: SSH through a firewall
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 :10.0.0.4:22 12.225.249.250 HTH - Original Message - From: Joshua Lokken [EMAIL PROTECTED] To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 503 807 6538 - To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: SSH through a firewall
Kevin, Thanks for your prompt reply. So, I added (to natd_flags in /etc/rc.conf): -redirect_port tcp 10.0.0.2:22 22 My understanding is that this line should tell natd to forward all incoming ssh packets to the desired destination machine (10.0.0.2:22), port 22. The results, however, are not what I'm expecting (no change). Any help? Thanks again. Again, please cc [EMAIL PROTECTED], as the address is not subscribed. Joshua Lokken -Original Message- From: Kevin D. Kinsey, DaleCo, S.P. [mailto:kdk;daleco.biz] Sent: Friday, November 15, 2002 11:02 AM To: Joshua Lokken Subject: Re: SSH through a firewall I believe you're looking for NAT. (Network address translation) start with: $man natd HTH, Kevin Kinsey - Original Message - From: Joshua Lokken [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 15, 2002 12: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 [EMAIL PROTECTED] 503 807 6538 - To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: SSH through a firewall
-Original Message- From: Adrian Mugnolo [mailto:adrianm;yahoo-inc.com] Sent: Friday, November 15, 2002 11:57 AM To: Joshua Lokken; [EMAIL PROTECTED] Subject: Re: SSH through a firewall 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 :10.0.0.4:22 12.225.249.250 HTH It does, thanks. The work machine is a Winbox, and I'm using PuTTY. I'm not sure how to get this setup to work, but I'll keep at it! Joshua To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message