I want to perform scp with tunnel in between to some remote PC. I am using LIBSSH which has scp functionality but I am not able to figure out how to add a tunnel for scp. Can anybody help me out?
Asked
Active
Viewed 119 times
0
-
What kind of tunnel? Why? Please elaborate on the matter. – Sami Kuhmonen Apr 24 '15 at 04:40
-
here is the scenario (My PC-->Linux PC--->Remote PC). So lets consider Linux PC is gateway for accessing Remote PC.So whenever i access Remote PC I need to go through Linux PC .Hence a tunnel is created between My Pc and Remote PC .I am using LIBSSH which has its own scp subsystem but i am not able to figure out how to copy files from my pc to remote PC using Linux Machine.This is same as when u use WINSCP and use scp protocol and in advanced options add a tunnel.Is it clear now??? – Raghaw Shukla Apr 24 '15 at 04:44