Transfer file from remote machine to local machine

J dreadpiratejeff at gmail.com
Mon Jul 17 02:28:20 UTC 2017


On Sun, Jul 16, 2017 at 20:36 Yubin Ruan <ablacktshirt at gmail.com> wrote:

> 2017-07-17 4:49 GMT+08:00 Colin Law <clanlaw at gmail.com>:
> > On 16 July 2017 at 17:15, Yubin Ruan <ablacktshirt at gmail.com> wrote:
> >> Hi,
> >> I am having some trouble with transfering file from remote machine to
> >> local machine.
> >>
> >> I got a remote machine A and a remote machine B. Usually I log into
> >> remote machine A using ssh and then use A as a relay to log into
> >> remote machine B. But when I am in B, I don't know how to copy file
> >> directly from B to my local machine.
> >>
> >> Because remote machine A is a relay and I don't have write permission,
> >> I cannot transfer file from B to A. And because B is only visible to A
> >> (since B is a internal machine), I cannot access B directly from my
> >> local machine.
> >
> > You have not said whether you can access the local machine from B.
> > Also can you access A from B and can you access local m/c from A?
>
> Sorry for that.
> I cannot access the local machine from either B or  because my local
> machine is behind a NAT. I can access A from B but I don't have write
> permission on A (I don't own A. A is used as a relay, so you cannot do
> much on A).


How about sshuttle? Running sshuttle to connect to A will create a VPN
connection via ssh and will set up routes so you should then be able to scp
from B to Local.





>
> Yubin
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20170717/5b8f8fd8/attachment.html>


More information about the ubuntu-users mailing list