[execnet-dev] Urgent question about ssh with username/password

Kishor Pawar krisp1506 at gmail.com
Thu Feb 22 02:56:47 EST 2018


Hello Holger,

Exactly, I am not able to get the simple "ssh user at ip" working even though
identity file is in place.

Does it have anything to do with identity file permissions or algorithm
used to create identity file or OS?

I am trying to connect from Ubuntu14.04 to redhar7.2

On Thu, 22 Feb 2018 at 13:23 holger krekel <holger at merlinux.eu> wrote:

> Hi Kishor,
>
> please first try to get a simple "ssh ..." work before
> trying with execnet.  Once you have password-less ssh-login
> working try with execnet.
>
> holger
>
>
>
> On Thu, Feb 22, 2018 at 07:43 +0000, Kishor Pawar wrote:
> > Hi Ronny,
> >
> > Identity file is not password protected in minecase.
> >
> > On Thu, 22 Feb 2018 at 12:59 RonnyPfannschmidt <
> > opensource at ronnypfannschmidt.de> wrote:
> >
> > > Hi Kishor,
> > >
> > > is by chance the identity file itself protected with a password?
> > >
> > > also please note that the invocation should use a ssh_config=configfile
> > > and the ssh config file should configure the identity file to use.
> > >
> > > Please also try declaring the config file and using it
> > >
> > > -- Ronny
> > >
> > > Am 22.02.2018 um 08:26 schrieb Kishor Pawar:
> > > > Hello Ronny,
> > > >
> > > > I do have identity file in place, still, it asks me for a password.
> > > >
> > > > Would you like to explain why it could be happening?
> > > >
> > > > a command I am running is
> > > >
> > > > "ssh= -i <identity file path> username at ip"
> > > >
> > > > On Thu, 22 Feb 2018 at 12:51 RonnyPfannschmidt
> > > > <opensource at ronnypfannschmidt.de
> > > > <mailto:opensource at ronnypfannschmidt.de>> wrote:
> > > >
> > > >     Hi prasann,
> > > >
> > > >     the common solution is to use a ssh configfile using
> > > >     "ssh=...//ssh_config=a_file_that_sets_the_password"
> > > >
> > > >     in general its strongly suggested to set up a identity file and
> use
> > > >     that,
> > > >     ssh itself has tools to copy the identity files to the host and
> even
> > > >     limit the commands it can use
> > > >
> > > >     -- Ronny
> > > >
> > > >     Am 21.02.2018 um 23:26 schrieb Prasanna Mulgaonkar:
> > > >     > I know that this is not a recommended approach, but in one
> > > particular
> > > >     > customer we are working with, only username/password based ssh
> > > logins
> > > >     > are permitted. How do I open an execnet gateway and pass a
> > > password to
> > > >     > the ssh call?
> > > >     >
> > > >     > For example make_gateway("ssh=testuser at ipaddress") prompts on
> the
> > > >     > python console if I run this in an interactive python shell. I
> > > want to
> > > >     > run it non interactively. How do I specify the password.
> > > >     >
> > > >     > Replacing ssh= with sshpass= does not work.
> > > >     >
> > > >     > Thanks
> > > >     >
> > > >     > --prasanna
> > > >     >
> > > >     > _______________________________________________
> > > >     > execnet-dev mailing list
> > > >     > execnet-dev at python.org <mailto:execnet-dev at python.org>
> > > >     > https://mail.python.org/mailman/listinfo/execnet-dev
> > > >
> > > >     _______________________________________________
> > > >     execnet-dev mailing list
> > > >     execnet-dev at python.org <mailto:execnet-dev at python.org>
> > > >     https://mail.python.org/mailman/listinfo/execnet-dev
> > > >
> > > > --
> > > > */Thanks & Regards/*
> > > > */Kishor Pawar/*
> > > > */
> > > > /*
> > > > */The Trouble with the world is that Stupids are Full of Confidence
> and
> > > > The Intelligent are Full of Doubts./*
> > >
> > --
> > *Thanks & Regards*
> > *Kishor Pawar*
> >
> > *The Trouble with the world is that Stupids are Full of Confidence and
> > The Intelligent are Full of Doubts.*
>
> > _______________________________________________
> > execnet-dev mailing list
> > execnet-dev at python.org
> > https://mail.python.org/mailman/listinfo/execnet-dev
>
> --
*Thanks & Regards*
*Kishor Pawar*

*The Trouble with the world is that Stupids are Full of Confidence and
The Intelligent are Full of Doubts.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/execnet-dev/attachments/20180222/a1dc911c/attachment-0001.html>


More information about the execnet-dev mailing list