bug-parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Parallel Bug Reports Unable to transfer multiple files when pass


From: Ole Tange
Subject: Re: GNU Parallel Bug Reports Unable to transfer multiple files when password-less SSH is not setup
Date: Fri, 13 Sep 2013 14:14:59 +0200

I assume there is a reason why you do not use authorized_keys and ssh-agent.

Would sshpass solve your problem:

http://www.cyberciti.biz/faq/noninteractive-shell-script-ssh-password-provider/

You ought to be able to use this is sshlogin:

parallel -S "/usr/bin/sshpass -p mypass ssh address@hidden" echo ::: foo


/Ole


On Thu, Sep 12, 2013 at 5:56 PM, Zhi Shen <address@hidden> wrote:
> Ole, Andreas,
>
> We have password-less SSH setup for specific servers only.  For the ones
> that does not support password-less SSH, we will enter the password(s).
>
> We are able to enter the passwords when sending a single file.
>
> local$ ./parallel --nonall -k --bf file1 -S remote "ls -trlh"
>
> When sending more than one file, entering the passwords does not work.
>
> local$ ./parallel --nonall -k --bf file1 --bf file2 -S remote "ls -trlh"
>
> We have a work-around for this, which we tar up the files before running
> parallel and then cleaning them afterwards.
>
> Thanks,
> zhi
> ./
>
>
> On Thu, Sep 12, 2013 at 4:43 AM, Andreas Bernauer <address@hidden>
> wrote:
>>
>> Alternatively, set ControlMaster (and ControlPath) and ssh to the remote
>> machine(s) in a separate terminal manually before running parallel. You
>> don't have to enter the passwords again, then.
>>
>> I have this in my ~/.ssh/config
>> Host *
>> ControlMaster auto
>> ControlPath ~/.ssh/address@hidden:%p
>>
>> Cheers,
>>
>> Andreas.
>>
>> On 9/12/13 9:06, Ole Tange wrote:
>> > Yes. GNU Parallel is made for situations where you do not have to
>> > enter your password. Look at ssh-agent and be inspired by
>> > https://wiki.dna.ku.dk/dokuwiki/doku.php?id=ssh_config
>> >
>> > /Ole
>> >
>> > On Wed, Sep 11, 2013 at 6:47 PM, Zhi Shen <address@hidden> wrote:
>> >> Hi,
>> >>
>> >> We are unable to transfer multiple files to a remote server when
>> >> password-less SSH is not setup.  We also notice that we make multiple
>> >> trips
>> >> to the remote server whenever we use "--bf" to transfer a file to the
>> >> remote
>> >> server.  From this, we had to input multiple passwords.
>> >>
>> >> local$ ./parallel -V
>> >> GNU parallel 20130722
>> >>
>> >> local$ uname -a
>> >> Linux local 2.6.18-308.8.1.el5 #1 SMP Fri May 4 16:43:02 EDT 2012
>> >> x86_64
>> >> x86_64 x86_64 GNU/Linux
>> >>
>> >> remote$ uname -a
>> >> Linux remote 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64
>> >> x86_64 x86_64 GNU/Linux
>> >>
>> >> local$ touch file1 file2
>> >> local$ ./parallel --nonall -k --bf file1 --bf file2 -S remote "ls
>> >> -trlh"
>> >> remote's password: remote's password:
>> >> stty: standard input: Invalid argument
>> >>
>> >>
>> >> local$ rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at
>> >> rsync.c(542) [sender=3.0.6]
>> >>
>> >> The above command did not come back and we press "CTRL+C" to exit.
>> >>
>> >> Thanks,
>> >> zhi
>> >>
>> >> --
>> >> Zhi Shen
>> >>
>> >>
>> >
>>
>
>
>
> --
> Zhi Shen
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]