ControlMaster, scp and current working directory

Mattieu Baptiste mattieu.b at gmail.com
Thu May 31 23:35:05 EST 2012


On Thu, May 31, 2012 at 12:22 PM, Bert Wesarg
<bert.wesarg at googlemail.com> wrote:
> On Thu, May 31, 2012 at 11:56 AM, Mattieu Baptiste <mattieu.b at gmail.com> wrote:
>> Hi,
>>
>> It seems there is a problem regarding ControlMaster and scp'ing a file
>> depending on the current working directory:
>>
>> $ cd ~/Personnel
>> $ scp -o ControlMaster=yes cox.jpg host.local:
>> muxserver_listen bind(): No such file or directory
>> lost connection
>> $ scp -o ControlMaster=no cox.jpg host.local:
>> cox.jpg                                          100%  222KB 222.1KB/s   00:00
>> $ cd
>> $ scp -o ControlMaster=yes Personnel/cox.jpg host.local:
>> cox.jpg                                          100%  222KB 222.1KB/s   00:00
>> $ scp -o ControlMaster=no Personnel/cox.jpg host.local:
>> cox.jpg                                          100%  222KB 222.1KB/s   00:00
>>
>
> What is the value of your ControlPath? By default it is not set, and
> therefore multiplexing is disabled.

Thanks, that was my mistake. ControlPath was set to
".ssh/sockets/%r@%h:%p" which was only valid in my home directory.

-- 
Mattieu Baptiste
"/earth is 102% full ... please delete anyone you can."


More information about the openssh-unix-dev mailing list