Peter Boosten <[EMAIL PROTECTED]> writes:

> No, I was more thinking of:
>
> ssh -L 4444:your.own.host:22 [EMAIL PROTECTED]
>
> and then open a new shell:
>
> scp -P 4444 the-file-you-want-to-copy [EMAIL PROTECTED]:
>
> This works easiest with agent forwarding, but I guess any
> authentication will do.

It is also worth taking a look at the ProxyCommand option.

For the case above something like this should be put in ~/.ssh/config:

Host your.own.host-tunneled
  HostKeyAlias your.own.host
  ProxyCommand ssh [EMAIL PROTECTED] nc your.own.host 22

The you can just do "ssh your.own.host-tunneled" and go through
your.friends.host transparently.

-- 
Christian Laursen
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to