Hi,
From a bash terminal or script, I'd like to access a device which I don't have direct access to. In an ideal world, we'd use an SSH proxy to accomplish this. However, since one is not available, I wondered whether we could utilise the
telnetd service on SpectroServer.
From doing a packet capture, I can see that the Spectrum Console will open a telnet session to the SpectroServer on port 31415 and send the command
relay <host> <port>
. After which, the session to the device is opened.
If I try this manually, I can successfully connect to a Telnet-based device (e.g. sending command
relay 172.16.30.2 23
). However, if the device is SSH only (e.g. sending command
relay 172.16.30.3 22
), the session is established but it fails since the device is expecting SSH messages (cipher exchange etc), but my host still thinks it is a telnet session:
I realise this issue quite niche but was interested to know if anyone else has tried something similar and had better success?
Thanks,
John