telnet: Name or service not known

23,024

You don't want your username in the original command: just type telnet 192.168.0.4 23 (with the 23 being for the port) and then it will ask for your username and password. With what you're doing, it will assume the whole thing to be an address.

Share:
23,024
Nani
Author by

Nani

Updated on September 18, 2022

Comments

  • Nani
    Nani over 1 year

    When I accessed a remote host using telnet I got an error like this:

    root@nani-Inspiron-3520:/home/nani# telnet [email protected]
    telnet: could not resolve [email protected]/telnet: Name or service not known
    root@nani-Inspiron-3520:/home/nani#
    

    What's the problem?