用python中的模塊telnetlib登錄遠(yuǎn)程機(jī)器怎樣打印每一步的調(diào)試信息呢??HOST = "192.168.1.192"?user = raw_input("Enter your remote account:")user = "mm"?password = "pwd"?tn = telnetlib.Telnet(HOST)? tn.set_debuglevel(2)?tn.open(HOST,PORT)? tn.read_until("ktos login: ")?tn.write(user + "\n")?tn.read_until("Password: ")tn.write(password + "\n")
python telnetlib問(wèn)題
qq_追夢(mèng)_26
2015-10-20 10:33:39