<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: yet another ssh and pass password problem in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055506#M48781</link>
    <description>Suggestion, instead of Perl it's also possible to try the "expect" program. It's perfect for scripting telnet/ssh or even serial sessions. For instance, tt saved me many times in deploying configs to routers over COM interface.</description>
    <pubDate>Mon, 02 Jul 2007 05:16:49 GMT</pubDate>
    <dc:creator>Van den Broeck Tijl</dc:creator>
    <dc:date>2007-07-02T05:16:49Z</dc:date>
    <item>
      <title>yet another ssh and pass password problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055502#M48777</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am struggeling to pass a password to an ssh-call.&lt;BR /&gt;&lt;BR /&gt;Yes, I know, .... use keys and agent and ...&lt;BR /&gt;&lt;BR /&gt;This does not work in this specific case, because the box I need to connect to is an embedded Linux System (a router), on which I can not (!) configure any ssh-server parameter, nor do I have a home directory to store keys in. You plain log in and have a set of commands to administrate this box.&lt;BR /&gt;&lt;BR /&gt;I have a windows based solution using puttys plink, which has a "-pw" option to pass a password in the commandline. I do not like this at all, but there is no other way.&lt;BR /&gt;I'd like to have a solution in which I use ssh on Linux to do this.&lt;BR /&gt;&lt;BR /&gt;Calling ssh with "-v" shows "password" as the only valid authentication method on the server side, and again, I can not change this.&lt;BR /&gt;&lt;BR /&gt;I am on Red Hat 2.6.9-42&lt;BR /&gt;OpenSSH_3.9p1&lt;BR /&gt;&lt;BR /&gt;Piping does not work, i.e.&lt;BR /&gt;echo "mypass" | ssh ....&lt;BR /&gt;&lt;BR /&gt;This way :&lt;BR /&gt;&lt;BR /&gt;ssh ... &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;show status&lt;BR /&gt;exit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;gives a reasonable result, but still requires to enter the password interactively, before my command is executed.&lt;BR /&gt;&lt;BR /&gt;Is there a way to set up the ssh-agent to forward a password instead of a key ?&lt;BR /&gt;&lt;BR /&gt;Help is very welcome&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 28 Jun 2007 10:59:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055502#M48777</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2007-06-28T10:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: yet another ssh and pass password problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055503#M48778</link>
      <description>You can use NET::SSH::Perl Module. Here is an example:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.thescripts.com/forum/thread49599.html" target="_blank"&gt;http://www.thescripts.com/forum/thread49599.html&lt;/A&gt;</description>
      <pubDate>Thu, 28 Jun 2007 11:06:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055503#M48778</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-06-28T11:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: yet another ssh and pass password problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055504#M48779</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The other end won't let you place a public key as authorized_keys file?&lt;BR /&gt;&lt;BR /&gt;Assuming there is trust, this would work.&lt;BR /&gt;&lt;BR /&gt;Scripted ssh has the same issue as putty, its not safe.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 28 Jun 2007 11:42:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055504#M48779</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-06-28T11:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: yet another ssh and pass password problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055505#M48780</link>
      <description>Ok,&lt;BR /&gt;&lt;BR /&gt;after a bit of trouble getting the module and the depended MATH module installed,&lt;BR /&gt;I get at least a connection.&lt;BR /&gt;&lt;BR /&gt;But my command is not executed. (output as follows:)&lt;BR /&gt;&lt;BR /&gt;Entering interactive session.&lt;BR /&gt;Sending command: show status isdn&lt;BR /&gt;Requesting service exec on channel 1.&lt;BR /&gt;channel 1: open confirm rwindow 0 rmax 32768&lt;BR /&gt;Remote:&lt;BR /&gt;&lt;BR /&gt;The script hangs with this "Remote:" prompt and does nothing further, until I do an abort.&lt;BR /&gt;&lt;BR /&gt;I found some issues with other routers having special ssh implementations which do not allow the use of two channels.&lt;BR /&gt;&lt;BR /&gt;The very same script directed to a linux box doing an "ps -ef" works fine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;my $ssh = Net::SSH::Perl-&amp;gt;new($host,debug=&amp;gt;1,protocol=&amp;gt;2,use_pty=&amp;gt;1);&lt;BR /&gt;$ssh-&amp;gt;login($user, $pass);&lt;BR /&gt;($out, $err, $exit)=$ssh-&amp;gt;cmd('show status isdn');&lt;BR /&gt;print "-- $out\n";&lt;BR /&gt;print "== $err\n";&lt;BR /&gt;&lt;BR /&gt;Any idea how to proceed further ?&lt;BR /&gt;&lt;BR /&gt;Volker&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jul 2007 04:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055505#M48780</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2007-07-02T04:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: yet another ssh and pass password problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055506#M48781</link>
      <description>Suggestion, instead of Perl it's also possible to try the "expect" program. It's perfect for scripting telnet/ssh or even serial sessions. For instance, tt saved me many times in deploying configs to routers over COM interface.</description>
      <pubDate>Mon, 02 Jul 2007 05:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055506#M48781</guid>
      <dc:creator>Van den Broeck Tijl</dc:creator>
      <dc:date>2007-07-02T05:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: yet another ssh and pass password problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055507#M48782</link>
      <description>Closing thread, although I did not really solve the initial problem.&lt;BR /&gt;&lt;BR /&gt;I got a workaround using plink from putty on a windows box and I am able to pass the password as a parameter.&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Mon, 30 Jul 2007 14:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/yet-another-ssh-and-pass-password-problem/m-p/5055507#M48782</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2007-07-30T14:24:25Z</dc:date>
    </item>
  </channel>
</rss>

