[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about creating an SSH session through SSH tunnel


Hello,

So i am trying to set up a system, where i can create an SSH session from my work computer to a controller, that is in a local network and connected to a server machine with a public IP (accessible via the internet).
So for example i want to send a file from my work computer to a controller, how should i do that?
So far i have set up an SSH session from my work computer to the server machine and forwarded the connection to the controller using the command ssh_channel_open_forward(tunnelChannel, "controllerIP", 22, "", 0);
Now if i understand correctly i should create a second SSH session from the work computer straight to the controller. That should be possible because of the tunnel. And then i should be able to send files through this second SSH session. Do i understand this correctly?

Best regards,

Caspar Romot
Junior System Engineer
ICD Industries Estonia OÜ

[Opis: Opis: Opis: cid:E41B1E4F-BFBC-4138-B49A-C9F52F90F3C7]

Mäealuse 2/1
12618 Tallinn Estonia
Mob:+372 58504604
Skype: casparom
www.icd.ee

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error,  please contact the System Manager info@xxxxxx<mailto:icd@xxxxxx> and delete the material from any computer.

PNG image


Follow-Ups:
Re: Question about creating an SSH session through SSH tunnelAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org