0

I have small IoT router that amongst other things can take input on a TCP port and output it from a serial port. I'm trying to use this feature to access the console on a network switch. It works perfectly, but some keys doesn't work as they are supposed to. Tab key seems to be interpreted by the network switch as ^I and every time I hit space I need to hit enter for Putty to actually send it. All the arrow keys send garbage as well.

Somehow I either need to change something in the router (entirely possible, the device runs some version of Linux) or I'll need to configure putty so that it sends special keys as combinations that the serial console on the switch can understand. How do I accomplish this?

UPDATE1: I've noticed a few things. I can send just about any special key, as long as I hit enter after it. For example, ^I is interpreted as Tab if I hit Enter afterwards, same with space.

Stuggi
  • 151
  • 7
  • 1
    From a security point of view, is there any chance you could use SSH instead of telnet? And block telnet in the router's firewall. If your IoT router has telnet exposed to the Internet, there is a chance it has been rooted already. – Andrew Morton Oct 26 '16 at 18:51
  • My intent isn't to expose the TCP port for this feature to the Internet, but to access it through either OpenVPN or an APN. Aka. I'm not an idiot. :) – Stuggi Oct 27 '16 at 04:34
  • I was hoping that a side-effect might be that the keys would work properly through SSH. You didn't mention if you'd seen, e.g. [PuTTY not sending Esc](http://superuser.com/questions/612510/putty-not-sending-esc). – Andrew Morton Oct 27 '16 at 07:59
  • The problem is that the router accepts data on a TCP port and forwards them out through the serial interface with the settings provided, so there's no option to connect through for example SSH. – Stuggi Oct 27 '16 at 16:46

0 Answers0