Transfer file from remote machine to local machine
Colin Law
clanlaw at gmail.com
Tue Jul 18 12:55:00 UTC 2017
On 18 July 2017 at 21:36, Yubin Ruan <ablacktshirt at gmail.com> wrote:
>
> On Tue, Jul 18, 2017 at 12:54:37PM +1000, Karl Auer wrote:
>> On Tue, 2017-07-18 at 18:17 +0800, Yubin Ruan wrote:
>> > Assuming that:
>> > > a) you can ssh from your system to machine A
>> > > b) you can ssh from machine A to machine B
>> > > c) you have credentials for machine B
Something like this may work for you
ssh userA at A "ssh userB at B 'cat /path/to/file'" > somefile
With ssh access using keys that works, not sure how it will go if you
need to specify passwords.
Colin
More information about the ubuntu-users
mailing list