<?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 telnet in a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213036#M570911</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;is it possible to create a script with telnet included and bypass the password request?&lt;BR /&gt;Have you ever created a similar script? Have you experiencies about this?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your helps!&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Pedro</description>
    <pubDate>Tue, 09 Mar 2004 05:04:01 GMT</pubDate>
    <dc:creator>Pippo_9</dc:creator>
    <dc:date>2004-03-09T05:04:01Z</dc:date>
    <item>
      <title>telnet in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213036#M570911</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;is it possible to create a script with telnet included and bypass the password request?&lt;BR /&gt;Have you ever created a similar script? Have you experiencies about this?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your helps!&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 09 Mar 2004 05:04:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213036#M570911</guid>
      <dc:creator>Pippo_9</dc:creator>
      <dc:date>2004-03-09T05:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213037#M570912</link>
      <description>Pedro,&lt;BR /&gt;&lt;BR /&gt;Take a look at the man page for remsh. With the use of /.rhosts or /etc/hosts.equiv you can log in and run remote commands without the need for a password.&lt;BR /&gt;&lt;BR /&gt;To do this as root, on the server (server1) add .rhosts with an entry like&lt;BR /&gt;&lt;BR /&gt;client1 root&lt;BR /&gt;&lt;BR /&gt;Permissions should be r only for root so &lt;BR /&gt;&lt;BR /&gt;chmod 400 /.rhosts&lt;BR /&gt;&lt;BR /&gt;On client1&lt;BR /&gt;&lt;BR /&gt;#remsh server1 -l root -n "ls -l /.rhosts"&lt;BR /&gt;&lt;BR /&gt;-r--------   1 root       sys             42 Mar  5 16:45 /.rhosts&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Tue, 09 Mar 2004 05:15:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213037#M570912</guid>
      <dc:creator>David Burgess</dc:creator>
      <dc:date>2004-03-09T05:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213038#M570913</link>
      <description>Not sure about telnet.&lt;BR /&gt;&lt;BR /&gt;However commands starting with letter r (rlogin, rcp, remsh) can be used on a network using /etc/hosts.equiv or .rhosts file.&lt;BR /&gt;&lt;BR /&gt;There are security issues which need to looked into before doing this.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Tue, 09 Mar 2004 05:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213038#M570913</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-03-09T05:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213039#M570914</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes it is possible with expect. Refer to my earlier thread on this topic,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=45609" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=45609&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;KarthiK S S</description>
      <pubDate>Tue, 09 Mar 2004 05:16:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213039#M570914</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-09T05:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213040#M570915</link>
      <description>Ok guys, thanks for suggestions!&lt;BR /&gt;I am looking for...&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 09 Mar 2004 05:28:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213040#M570915</guid>
      <dc:creator>Pippo_9</dc:creator>
      <dc:date>2004-03-09T05:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213041#M570916</link>
      <description>There is a way using telnet's "TAC" facility (see the telnetd man page), although this should be considered as a potential security risk.&lt;BR /&gt;&lt;BR /&gt;To set it up, change the telnetd line in /etc/inetd.conf to read&lt;BR /&gt;&lt;BR /&gt;telnet       stream tcp nowait root /usr/lbin/telnetd  telnetd -t&lt;BR /&gt;&lt;BR /&gt;then restart inetd (inetd -c)&lt;BR /&gt;&lt;BR /&gt;This then enables telnet sessions to use standard equavalency via the hosts.equiv file.&lt;BR /&gt;&lt;BR /&gt;The security issue with this is that it connects to the remote server using the UID number, rather than the user name.&lt;BR /&gt;&lt;BR /&gt;eg:  you have 2 servers server1 and server2.  On server1, userA has UID number 123 and userB has UID 456, on server2, userB has UID number 123, and userA has UID 456&lt;BR /&gt;&lt;BR /&gt;If TAC is enabled, when userA issues the telnet command to connect from server1 to server2, they actually log in to server2 as userB, even though the ID userA exists</description>
      <pubDate>Tue, 09 Mar 2004 05:32:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213041#M570916</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2004-03-09T05:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: telnet in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213042#M570917</link>
      <description>Following is a working script which we use at work with only the IP address and login/password changed.  This logs into a 3COM switch and makes a few changes then exits.  The \r's were needed by the 3Com but my Ciscos don't need them.&lt;BR /&gt;&lt;BR /&gt;REMOTE=A.B.C.D&lt;BR /&gt;(sleep 5&lt;BR /&gt;echo "\r"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "login\r"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "password\r"&lt;BR /&gt;sleep 3&lt;BR /&gt;echo "ethernet portState 2 disable\r"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "ethernet portState 1 enable\r"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "ethernet sum all\r"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "q\r"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "logout\r"&lt;BR /&gt;echo "\r") |telnet $REMOTE   &lt;BR /&gt;&lt;BR /&gt;Ron</description>
      <pubDate>Tue, 09 Mar 2004 14:10:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-in-a-script/m-p/3213042#M570917</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2004-03-09T14:10:25Z</dc:date>
    </item>
  </channel>
</rss>

