[Tutor] Telnet login
eryksun
eryksun at gmail.com
Fri Nov 9 05:32:46 CET 2012
On Thu, Nov 8, 2012 at 11:14 PM, Dave Angel <d at davea.name> wrote:
>
>> HOST = "192.168.xx.xx"
>> user = raw_input("Enter your remote account: ")
>> password = getpass.getpass()
>>
>> tn = telnetlib.Telnet(HOST)
>
> Where's the error message, including the traceback? Somebody (not me)
> who is familiar with telnetlib can presumably help, given enough
> information.
The port to use is the 2nd argument:
HOST = '192.168.xx.xx'
PORT = 2332
tn = telnetlib.Telnet(HOST, PORT)
http://docs.python.org/2/library/telnetlib#telnetlib.Telnet
More information about the Tutor
mailing list