Find the answer to your Linux question:
Results 1 to 8 of 8
I m trying to telnet another machine on my network but i get this error. Code: vickey@vickey-laptop:~$ telnet 192.168.0.10 Trying 192.168.0.10... telnet: Unable to connect to remote host: No route ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    Telnet not working


    I m trying to telnet another machine on my network but i get this error.
    Code:
    vickey@vickey-laptop:~$ telnet 192.168.0.10
    Trying 192.168.0.10...
    telnet: Unable to connect to remote host: No route to host
    But normal pinging is working out perfectly
    Code:
    vickey@vickey-laptop:~$ ping 192.168.0.10
    PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.
    64 bytes from 192.168.0.10: icmp_seq=1 ttl=64 time=0.144 ms
    64 bytes from 192.168.0.10: icmp_seq=2 ttl=64 time=0.116 ms
    64 bytes from 192.168.0.10: icmp_seq=3 ttl=64 time=0.108 ms
    64 bytes from 192.168.0.10: icmp_seq=4 ttl=64 time=0.126 ms
    ^C
    --- 192.168.0.10 ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3002ms
    rtt min/avg/max/mdev = 0.108/0.123/0.144/0.017 ms
    What is wrong and y m i not able to telnet the machin 192.168.0.10. Also telnet to 192.168.0.20 (the machine from where I m trying to telnet 192.168.0.10) is not working
    Code:
    vickey@vickey-laptop:~$ telnet 192.168.0.20
    Trying 192.168.0.20...
    telnet: Unable to connect to remote host: Connection refused
    I m using ubuntu and have a freshly installed version and haven't messed up any files.
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Do you have the telnet daemon running?


    It's on your system probably part of the inetd daemon, so you have to edit /etc/inetd.conf in order to enable it. You can test whether it's running in a couple of ways, the easiest being:
    Code:
    # on the target machine:
    telnet localhost
    
    # or a portscan, look for an open port 23
    nmap localhost
    # or
    nmap 192.168.0.10
    That said, it's probably better to install ssh, and use that rather than telnet. It's much much more secure, specially over the intertubes.
    Can't tell an OS by it's GUI

  3. #3
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    thanks

    The port doesn't seem to be open ,however on the target(192.168.0.10) machine its open.
    Code:
    vickey@vickey-laptop:~$ nmap localhost
    
    Starting Nmap 4.62 ( http://nmap.org ) at 2009-06-06 17:08 IST
    Interesting ports on localhost (127.0.0.1):
    Not shown: 1714 closed ports
    PORT    STATE SERVICE
    631/tcp open  ipp
    
    Nmap done: 1 IP address (1 host up) scanned in 0.113 seconds
    vickey@vickey-laptop:~$
    Even I have heard that using telnet isn't secure but I m doing it on my own personal home ntw.
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  4. #4
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    Starting Nmap 4.62 ( Nmap - Free Security Scanner For Network Exploration & Security Audits. ) at 2009-06-06 17:08 IST
    Interesting ports on localhost (127.0.0.1):
    Not shown: 1714 closed ports
    PORT STATE SERVICE
    631/tcp open ipp
    On this one, the daemon isn't running, on the other one
    it may be a firewall issue.

  5. #5
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    thanks but how to make deamon run
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  6. #6
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Can you post the output of these two commands:
    Code:
    cat /etc/inetd.conf|grep telnet # on the remote machine
    /sbin/route # on the local machine
    Can't tell an OS by it's GUI

  7. #7
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    thanks

    Code:
    vickey@vickey-laptop:~$ cat /etc/inetd.conf |grep telnet
    vickey@vickey-laptop:~$ /sbin/route 
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.0.0     *               255.255.255.0   U     2      0        0 wlan0
    link-local      *               255.255.0.0     U     1000   0        0 wlan0
    default         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0
    The /sbin/route command is working properly ( I haven't connected to the target system but still form the o/p it seems that its working properly)
    There is no o/p for greping telnet. I think the contents of the file may help :
    Code:
    # /etc/inetd.conf:  see inetd(8) for further informations.
    #
    # Internet superserver configuration database
    #
    #
    # Lines starting with "#:LABEL:" or "#<off>#" should not
    # be changed unless you know what you are doing!
    #
    # If you want to disable an entry so it isn't touched during
    # package updates just comment it out with a single '#' character.
    #
    # Packages should modify this file by using update-inetd(8)
    #
    # <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
    #
    #:INTERNAL: Internal services
    #discard                stream  tcp     nowait  root    internal
    #discard                dgram   udp     wait    root    internal
    #daytime                stream  tcp     nowait  root    internal
    #time           stream  tcp     nowait  root    internal
    
    #:STANDARD: These are standard services.
    
    #:BSD: Shell, login, exec and talk are BSD protocols.
    
    #:MAIL: Mail, news and uucp services.
    
    #:INFO: Info services
    
    #:BOOT: TFTP service is provided primarily for booting.  Most sites
    #       run this only on machines acting as "boot servers."
    
    #:RPC: RPC based services
    
    #:HAM-RADIO: amateur-radio services
    
    #:OTHER: Other services
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  8. #8
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    telnet is working now but another problem

    so finally got some solutions. Now other machine is able to telnet my machine(.20) but when i try to telnet the machin (.10) i get this error
    Code:
    telnet: Unable to connect to remote host: No route to host
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •