What's the best way to telnet from a remote Windows PC without using RDP?

Posted by Rob D. on Server Fault See other posts from Server Fault or by Rob D.
Published on 2010-12-30T17:24:37Z Indexed on 2012/12/04 5:07 UTC
Read the original article Hit count: 503

Filed under:
|
|
|

Three Networks:

  1. 10.1.1.0 - Mine
  2. 172.1.1.0 - My Branch Office
  3. 172.2.2.0 - My Branch Office's VOIP VLAN.

My PC is on 10.1.1.0. I need to telnet into a Cisco router on 172.2.2.0. The 10.1.1.0 network has no routes to 172.2.2.0, but a VPN connects 10.1.1.0 to 172.1.1.0. Traffic on 172.1.1.0 can route to 172.2.2.0.

All PCs on 172.1.1.0 are running Windows XP. Without disrupting anyone using those PCs, I want to open a telnet session from one of those PCs to the router on 172.2.2.0.

I've tried the following:

psexec.exe \\branchpc telnet 172.2.2.1


psexec.exe \\branchpc cmd.exe
telnet 172.2.2.1


psexec.exe \\branchpc -c plink -telnet 172.2.2.1

Methods 1 and 2 both failed because telnet.exe is not usable over psexec. Method 3 actually succeeded in creating the connection, but I cannot login because the session registers my carriage return twice. My password is always blank because at the "Username:" prompt I'm effectively typing: Routeruser[ENTER][ENTER]

It's probably time to deploy WinRM...

Does anyone know of any other alternatives?

Does anyone know how I can fix plink.exe so it only receives one carriage return when I use it over psexec?

© Server Fault or respective owner

Related posts about remote

Related posts about telnet

  • Telnet does not give a response

    as seen on Server Fault - Search for 'Server Fault'
    Some wireless access points are acting a little weird, so I want to reboot them every couple of hours. Luckily there exists a security flaw which lets me login as root through telnet when using port 1111 (without username and password). Now I want to use that to let my QNAP NAS execute the reboot… >>> More

  • Ougoing telnet: Unable to connect to remote host: Connection refused

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I am trying to telnet from Ubuntu server (running Maverick) on ec2 to another machine I have set up not on ec2 - we'll call it "server-x". The two machines are connected via vpn. I can ping from the ec2 machine to server-x no problem. On another machine also on the vpn but also not on ec2 I can… >>> More

  • Connect to remote server

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hi All, I'm new to perl. And I have used following code from one forum to connect to one of the server. but throwing error messages [root@Cus]# cat tt.pl #!/usr/bin/perl use Net::Telnet; $telnet = new Net::Telnet ( Timeout=>2, Errmode=>'die'); $telnet->open('10.0.0.28'); $telnet->waitfor('/login:/'); $telnet->print('administrator'); $telnet->waitfor('/Password:/'); $telnet->print('test'); $telnet->waitfor('/switch8-12>/'); $telnet->print('whoamI'); $output=$telnet->waitfor('/switch8-12>/'); print… >>> More

  • Why do I get 'use: command not found' when I run my Perl script?

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I'm new to Perl. And I have used following code from one forum to connect to one of the server. but throwing error messages [root@Cus]# cat tt.pl #!/usr/bin/perl use Net::Telnet; $telnet = new Net::Telnet ( Timeout=>2, Errmode=>'die'); $telnet->open('10.0.0.28'); $telnet->waitfor('/login:/'); $telnet->print('administrator'); $telnet->waitfor('/Password:/'); $telnet->print('test'); $telnet->waitfor('/switch8-12>/'); $telnet->print('whoamI'); $output=$telnet->waitfor('/switch8-12>/'); print… >>> More

  • Code to connect to remote server using perl

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I'm written small code to connect to remote server using perl but observing error messages #!/usr/bin/perl -w use Net::Telnet; $telnet = new Net::Telnet ( Timeout=>60, Errmode=>'die'); $telnet->open('192.168.50.40'); $telnet->waitfor('/login:/'); $telnet->print('queen'); $telnet->waitfor('/password:/'); $telnet->print('kinG… >>> More