<?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: Telnet whith Automatic logon in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900647#M104802</link>
    <description>Along with Ravi, I strongly urge you to use secure shell.  Installed properly, your system won't be challenged for a password, and the whole conversation is encrypted using public/private keying. Telnet is NOT secure; it sends passwords unencrypted.  &lt;BR /&gt;You can get the secure shell depot for free from software.hp.com.  I wrote a document on how to implement it, which I've attached (it seems to be popular).</description>
    <pubDate>Mon, 10 Feb 2003 17:36:50 GMT</pubDate>
    <dc:creator>Chris Vail</dc:creator>
    <dc:date>2003-02-10T17:36:50Z</dc:date>
    <item>
      <title>Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900638#M104793</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;How can I can do to use telnet to remote host (cisco router) using automatic username and password. for exemple: &lt;BR /&gt;telnet username@password host &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Feb 2003 09:47:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900638#M104793</guid>
      <dc:creator>Ivan Mariuz</dc:creator>
      <dc:date>2003-02-10T09:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900639#M104794</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For systems you can use ssh&lt;BR /&gt;To login to Cisco router, i don't think you can use ssh</description>
      <pubDate>Mon, 10 Feb 2003 09:54:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900639#M104794</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2003-02-10T09:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900640#M104795</link>
      <description>you can do something like&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh &lt;BR /&gt;(sleep 5 &lt;BR /&gt;echo &lt;USERNAME&gt; &lt;BR /&gt;sleep 5 &lt;BR /&gt;echo &lt;PASSWORD&gt; &lt;BR /&gt;sleep 5 &lt;BR /&gt;echo ls &lt;BR /&gt;sleep 5 &lt;BR /&gt;echo exit) |telnet &lt;HOSTNAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;YOu can do things better with PERL.&lt;BR /&gt;Wait until people like Procura replies.&lt;/HOSTNAME&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Mon, 10 Feb 2003 09:54:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900640#M104795</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-02-10T09:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900641#M104796</link>
      <description>Hi, I try the script, but it don't works, the error was: "Connection closed by foreign host." I think The telnet program connects to the remote host but it completely ignores any commands you pipe to it. That's because the telnet program reads it input only from the terminal and not from standard input.</description>
      <pubDate>Mon, 10 Feb 2003 10:11:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900641#M104796</guid>
      <dc:creator>Ivan Mariuz</dc:creator>
      <dc:date>2003-02-10T10:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900642#M104797</link>
      <description>connection will be closed by the router if the password is wrong three times&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Just modify as&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh &lt;BR /&gt;(sleep 5 &lt;BR /&gt;echo &lt;PASSWORD&gt; &lt;BR /&gt;sleep 5&lt;BR /&gt;echo exit) |telnet &lt;ROUTER-IP&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/ROUTER-IP&gt;&lt;/PASSWORD&gt;</description>
      <pubDate>Mon, 10 Feb 2003 10:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900642#M104797</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-02-10T10:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900643#M104798</link>
      <description>The error is the same, The password are correct.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Feb 2003 10:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900643#M104798</guid>
      <dc:creator>Ivan Mariuz</dc:creator>
      <dc:date>2003-02-10T10:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900644#M104799</link>
      <description>you should use expect as a script language for this kind of interaction:&lt;BR /&gt;&lt;BR /&gt;expect can be downloaded from software.hp.com&lt;BR /&gt;&lt;BR /&gt;expect comes from : &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://expect.nist.gov/" target="_blank"&gt;http://expect.nist.gov/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Take a look there&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Feb 2003 10:51:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900644#M104799</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2003-02-10T10:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900645#M104800</link>
      <description>You cant do this by normal scripting means.  The input value will not be read from your script as the telnet prompt will stop the script.  &lt;BR /&gt;&lt;BR /&gt;You need to get a program called expect, which will allow you to script where waiting for stdin.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Mon, 10 Feb 2003 14:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900645#M104800</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-02-10T14:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900646#M104801</link>
      <description>If you want to try perl, you can download a the "Net::Telnet::Cisco" module that makes interacting much easier. Here is a sample where I inquiry multiple cisco boxes for "arp" info-&lt;BR /&gt;&lt;BR /&gt;use Net::Telnet::Cisco;&lt;BR /&gt;@swlist=(1,11..16,18,19,20,22,30);&lt;BR /&gt;%nouse=(1,1,18,1,15,1,30,1);&lt;BR /&gt;# 18,19 can not be telnet'd into from hpux?&lt;BR /&gt;foreach $ip4 (@swlist) {&lt;BR /&gt; next if $nouse{$ip4};&lt;BR /&gt; $ip="172.16.0.$ip4";&lt;BR /&gt; my $cs = Net::Telnet::Cisco-&amp;gt;new( Host =&amp;gt; $ip );&lt;BR /&gt;&lt;BR /&gt; if ($ip4 eq "1") {&lt;BR /&gt;  $cs-&amp;gt;login( 'login', 'apasswd' );               # Do PIX firewall&lt;BR /&gt;  $ok=$cs-&amp;gt;enable("apasswd2");                    # enable priv mode&lt;BR /&gt;  my @cmd_output = $cs-&amp;gt;cmd( 'no pager' );      # Turn off paging&lt;BR /&gt; } else {&lt;BR /&gt;  $cs-&amp;gt;login( 'login', 'apasswd3' );                    # Do reg switch&lt;BR /&gt;  my @cmd_output = $cs-&amp;gt;cmd( 'terminal length 0' );  # Turn off paging&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; # Execute a command&lt;BR /&gt; @cmd_output = $cs-&amp;gt;cmd( 'show tech-support' );&lt;BR /&gt; map s/^/$ip4&amp;gt;/, @cmd_output;&lt;BR /&gt; print @cmd_output;&lt;BR /&gt;&lt;BR /&gt; $cs-&amp;gt;close;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 10 Feb 2003 15:25:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900646#M104801</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2003-02-10T15:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900647#M104802</link>
      <description>Along with Ravi, I strongly urge you to use secure shell.  Installed properly, your system won't be challenged for a password, and the whole conversation is encrypted using public/private keying. Telnet is NOT secure; it sends passwords unencrypted.  &lt;BR /&gt;You can get the secure shell depot for free from software.hp.com.  I wrote a document on how to implement it, which I've attached (it seems to be popular).</description>
      <pubDate>Mon, 10 Feb 2003 17:36:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900647#M104802</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-02-10T17:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet whith Automatic logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900648#M104803</link>
      <description>Hi all, I resolve my problem using EXPECT. &lt;BR /&gt;&lt;BR /&gt;My script:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# exec expect "$0" ${1+"$@"}&lt;BR /&gt;set host [lindex $argv 0]&lt;BR /&gt;set login [lindex $argv 1]&lt;BR /&gt;set password [lindex $argv 2]&lt;BR /&gt;spawn telnet $host &lt;BR /&gt;expect "Username:"&lt;BR /&gt;send "$login\r"&lt;BR /&gt;expect "Password:"&lt;BR /&gt;send "$password\r"&lt;BR /&gt;interact&lt;BR /&gt;&lt;BR /&gt;Thanks for all...&lt;BR /&gt;Ivan</description>
      <pubDate>Tue, 11 Feb 2003 09:32:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-whith-automatic-logon/m-p/2900648#M104803</guid>
      <dc:creator>Ivan Mariuz</dc:creator>
      <dc:date>2003-02-11T09:32:13Z</dc:date>
    </item>
  </channel>
</rss>

