Transferring file to local machine when SSHing into a foreign box

Bert Wesarg bert.wesarg at googlemail.com
Sun May 13 07:05:16 EST 2012


On Sat, May 12, 2012 at 7:45 PM, Dotan Cohen <dotancohen at gmail.com> wrote:
> On Wed, May 9, 2012 at 12:38 AM, Ángel González <keisial at gmail.com> wrote:
>> You could reconfigure your current connection adding a tunnel, and then
>> use that for transfering the files, but you'd still need a local daemon
>> (eg. ftpd) where to drop them.
>
> I am sure that you recognise the added complexity for the user by way
> of the workaround that you mention. From a technical point of view,
> OpenSSH already has the components necessary to make this a simple
> procedure.

It's not. Because SSH does not monitor what commands you execute in
the remote shell and the shell does not know that it's a remote shell.
Your SSH client just sends your locally typed key strokes to the
remote terminal. Maybe the command line activated via ~C (see the
escape char option in ssh(1)) could be used to initiate file
transfers.

Bert


More information about the openssh-unix-dev mailing list