From prasanna.mulgaonkar at gmail.com Wed Feb 21 17:26:03 2018 From: prasanna.mulgaonkar at gmail.com (Prasanna Mulgaonkar) Date: Wed, 21 Feb 2018 14:26:03 -0800 Subject: [execnet-dev] Urgent question about ssh with username/password Message-ID: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> 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 From dimaqq at gmail.com Wed Feb 21 19:30:06 2018 From: dimaqq at gmail.com (Dima Tisnek) Date: Thu, 22 Feb 2018 00:30:06 +0000 Subject: [execnet-dev] Urgent question about ssh with username/password In-Reply-To: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> References: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> Message-ID: You'll want to follow e.g. https://unix.stackexchange.com/questions/223491/piping-a-password-located-in-a-file-to-the-ssh-command which from execnet's point of view will be a custom ssh client (same as if you had to use a custom ssh version installed under /usr/local/bin/ssh) On Thu, 22 Feb 2018 at 6:32 AM, Prasanna Mulgaonkar < prasanna.mulgaonkar at gmail.com> wrote: > 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 > https://mail.python.org/mailman/listinfo/execnet-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From opensource at ronnypfannschmidt.de Thu Feb 22 02:14:58 2018 From: opensource at ronnypfannschmidt.de (RonnyPfannschmidt) Date: Thu, 22 Feb 2018 08:14:58 +0100 Subject: [execnet-dev] Urgent question about ssh with username/password In-Reply-To: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> References: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> Message-ID: <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> 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 > https://mail.python.org/mailman/listinfo/execnet-dev From opensource at ronnypfannschmidt.de Thu Feb 22 02:29:47 2018 From: opensource at ronnypfannschmidt.de (RonnyPfannschmidt) Date: Thu, 22 Feb 2018 08:29:47 +0100 Subject: [execnet-dev] Urgent question about ssh with username/password In-Reply-To: References: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> Message-ID: 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 username at ip" > > On Thu, 22 Feb 2018 at 12:51 RonnyPfannschmidt > > 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 > > https://mail.python.org/mailman/listinfo/execnet-dev > > _______________________________________________ > 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./* From krisp1506 at gmail.com Thu Feb 22 02:26:26 2018 From: krisp1506 at gmail.com (Kishor Pawar) Date: Thu, 22 Feb 2018 07:26:26 +0000 Subject: [execnet-dev] Urgent question about ssh with username/password In-Reply-To: <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> References: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> Message-ID: 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 username at ip" On Thu, 22 Feb 2018 at 12:51 RonnyPfannschmidt < 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 > > https://mail.python.org/mailman/listinfo/execnet-dev > > _______________________________________________ > 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: From krisp1506 at gmail.com Thu Feb 22 02:43:57 2018 From: krisp1506 at gmail.com (Kishor Pawar) Date: Thu, 22 Feb 2018 07:43:57 +0000 Subject: [execnet-dev] Urgent question about ssh with username/password In-Reply-To: References: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> Message-ID: 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 username at ip" > > > > On Thu, 22 Feb 2018 at 12:51 RonnyPfannschmidt > > > > 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 > > > https://mail.python.org/mailman/listinfo/execnet-dev > > > > _______________________________________________ > > 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./* > -- *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: From holger at merlinux.eu Thu Feb 22 02:53:13 2018 From: holger at merlinux.eu (holger krekel) Date: Thu, 22 Feb 2018 08:53:13 +0100 Subject: [execnet-dev] Urgent question about ssh with username/password In-Reply-To: References: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> Message-ID: <20180222075313.GI18553@beto> 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 username at ip" > > > > > > On Thu, 22 Feb 2018 at 12:51 RonnyPfannschmidt > > > > > > 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 > > > > https://mail.python.org/mailman/listinfo/execnet-dev > > > > > > _______________________________________________ > > > 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./* > > > -- > *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 From krisp1506 at gmail.com Thu Feb 22 02:56:47 2018 From: krisp1506 at gmail.com (Kishor Pawar) Date: Thu, 22 Feb 2018 07:56:47 +0000 Subject: [execnet-dev] Urgent question about ssh with username/password In-Reply-To: <20180222075313.GI18553@beto> References: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> <20180222075313.GI18553@beto> Message-ID: 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 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 username at ip" > > > > > > > > On Thu, 22 Feb 2018 at 12:51 RonnyPfannschmidt > > > > > > > > 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 > > > > > https://mail.python.org/mailman/listinfo/execnet-dev > > > > > > > > _______________________________________________ > > > > 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./* > > > > > -- > > *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: From holger at merlinux.eu Thu Feb 22 03:01:13 2018 From: holger at merlinux.eu (holger krekel) Date: Thu, 22 Feb 2018 09:01:13 +0100 Subject: [execnet-dev] Urgent question about ssh with username/password In-Reply-To: References: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> <20180222075313.GI18553@beto> Message-ID: <20180222080113.GJ18553@beto> permissions is often problem, also configuration. enable verbose logging on both sides. Please look on stackoverflow or other venues for how to proceed, it's not really an execnet question. holger On Thu, Feb 22, 2018 at 07:56 +0000, Kishor Pawar wrote: > 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 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 username at ip" > > > > > > > > > > On Thu, 22 Feb 2018 at 12:51 RonnyPfannschmidt > > > > > > > > > > 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 > > > > > > https://mail.python.org/mailman/listinfo/execnet-dev > > > > > > > > > > _______________________________________________ > > > > > 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./* > > > > > > > -- > > > *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.* From krisp1506 at gmail.com Thu Feb 22 03:03:08 2018 From: krisp1506 at gmail.com (Kishor Pawar) Date: Thu, 22 Feb 2018 08:03:08 +0000 Subject: [execnet-dev] Urgent question about ssh with username/password In-Reply-To: <20180222080113.GJ18553@beto> References: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> <20180222075313.GI18553@beto> <20180222080113.GJ18553@beto> Message-ID: Thanks, Holger! On Thu, 22 Feb 2018 at 13:31 holger krekel wrote: > > permissions is often problem, also configuration. > enable verbose logging on both sides. > Please look on stackoverflow or other venues for > how to proceed, it's not really an execnet question. > > holger > > On Thu, Feb 22, 2018 at 07:56 +0000, Kishor Pawar wrote: > > 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 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 username at ip" > > > > > > > > > > > > On Thu, 22 Feb 2018 at 12:51 RonnyPfannschmidt > > > > > > > > > > > > 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 > > > > > > > https://mail.python.org/mailman/listinfo/execnet-dev > > > > > > > > > > > > _______________________________________________ > > > > > > 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./* > > > > > > > > > -- > > > > *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.* > -- *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: From prasanna.mulgaonkar at gmail.com Thu Feb 22 13:21:10 2018 From: prasanna.mulgaonkar at gmail.com (Prasanna Mulgaonkar) Date: Thu, 22 Feb 2018 10:21:10 -0800 Subject: [execnet-dev] Urgent question about ssh with username/password In-Reply-To: <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> References: <4438463e-76d1-7a27-e952-e1b500545189@gmail.com> <734b3cc6-dd1b-8a4d-ee91-5368ecfedb91@ronnypfannschmidt.de> Message-ID: <7187c672-671c-b135-58df-34969df3d9b4@gmail.com> Ronny, thanks for? your input. I don't understand what you mean by the option //ssh_config=a_file_that_sets_the_password. Is there any documentation on the syntax of that file? For example, if the username is test and password is test (for the sake of argument), in execnet.makegateway I would provide parameters "ssh=test at ip//ssh_config=some_file" How do I specify the password itself in the some_file? Everywhere we use execnet, we use it with an identity file and key-pairs. But in one installation there is something in the environment that is preventing key based ssh from working and we are trying to debug this. Even a direct ssh command with keys is being rejected in the environment though password based ssh works. Thanks --prasanna On 02/21/2018 11:14 PM, RonnyPfannschmidt 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 >> https://mail.python.org/mailman/listinfo/execnet-dev