On Thursday 13 October 2005 18.07, James Knott wrote:
Rikard Johnels wrote:
Hi all!
I must be either totally blind or just plain stupid, but i cant find the way to scp and ssh thru a firewall.
Scenario 1: Workstation connecting to the outside of a firewall and then from the wall to a server on the inside network. Ok the stupid way is probably: ssh user@red-net.domian.com (loggin in) ssh another-user@green-server.inside.net
I know there must be a way to redirect the ssh session so i wont have to login twice (Did it with VNC a few years back, but cant seem to find the page that described how...)
Scenario 2. Same set up, but i need to copy a file from workstation to green-server via the firewall.
Can that be done via a allready set up ssh session (sort of like VPN) Can the scp command be redirected?
You have to set up port forwarding. If you still want to be able to connect to the firewall, you'll have to choose a second port number. This way, one port number talks to the firewall and the other is forwarded to a computer behind the firewall.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
The problem is: I have three different servers and five workstations on the inside. (192.168.0.x/24 network) And i need to get to them independently. I do NOT want to set up individual portforwards in the firewall. -- /Rikard ----------------------------------------------------------------------------- email : rikard.j@rikjoh.com web : http://www.rikjoh.com mob : +46 (0)736 19 76 25 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >