Windows – Executing a Telnet command in an ssh command

hp-uxunixwindows

I want have a Telnet command inside the ssh command for executing the Telnet command at the remote machine (172.202.230.22). I tried with the command

ssh Administrator@172.202.230.22 telnet 10.86.114.10 8088

It is giving an error message like

command not found (error code:127),

But when I tried to execute the same Telnet command directly at 172.202.230.22 it is executing fine. What is the reason?

Best Answer

Specify the full path to telnet:

$ ssh Administrator@172.202.230.22 /usr/bin/telnet 10.86.114.10 8088