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

Re: tunnelling a scp connection over multiple host



On Mon, Sep 29, 2003 at 04:59:52AM -0600, RJ45 wrote:
> hello,
> this is my configuration.
>      
>          ssh            ssh 
> HOST A -------> HOST B -------->HOST C
> 
> if I connct from host A to host B and then from host B to host C
> using SSH I would like to being able to forward an sc pconnection the same
> way is done with X11, and with X11 I can forward it automaticcaly so that
> applications launched on host C are forwarded to Host A.
> 
> Is it possible to do the same ? Can I make a scp to host C passing from
> Host B but copying my files on Host A ?
> Host B is my ssh gateway. People logins on Host B and the from host B they
> login to their host C. They are able to work also with X11 but they cannot
> use scp from host A to copy files which are on Host C And I Am not able to
> solve this problem.
> I do not want to use the gateway host B as a temporary download host for
> scp connection, I would like scp to be forwarded to host A in some way.
> I don't know if it is possible.
> 

from man scp:

     -o ssh_option
        Can be used to pass options to ssh in the format used
	in ssh_config(5). This is useful for specifying options 
	for which there is no separate scp command-line flag.

and from man ssh_config:

     LocalForward
        Specifies that a TCP/IP port on the local machine be
	forwarded over the secure channel to the specified host 
	and port from the remote machine.  The first argument 
	must be a port number, and the second must be host:port.  
	IPv6 addresses can be specified with an alternative 
	syntax: host/port.  Multiple forwardings may be specified, 
	and additional forwardings can be given on the command 
	line.  Only the superuser can forward privileged ports
	
> thank you
> 
> Rick