can't telnet to host

Ask a Question related to Sun Solaris, Design and Development.

  1. #1

    Default can't telnet to host

    Hi,

    I've got a Solaris 8 machine that I inherited and I'm stumped as to
    why I can't telnet to it. I know that telnet service works by default
    on Solaris and I don't know what my predecessor did to disable it.

    If I try to telnet to the machine I get:

    Trying a.b.c.d...
    Connected to myhost.com.
    Escape character is '^]'.


    SunOS 5.8

    Connection closed by foreign host.

    There are no /etc/hosts.allow or /etc/hosts.deny files so I don't
    think TCP wrappers are in play here.

    Here's the entry in /etc/inetd.conf:

    telnet stream tcp6 nowait root /usr/sbin/in.telnetd
    in.telnetd

    It's not commented out so inetd should spawn in.telnetd as needed.

    The binary does exist and is executable:

    -r-xr-xr-x 1 root bin 28112 Nov 30 2000
    /usr/sbin/in.telnetd

    Where else can I look?

    Thanks,
    Sol
    Sol Linderstein Guest

  2. Similar Questions and Discussions

    1. How do you telnet from 1 host to another using Telnet Module
      Hello, I need to know how you telnet from one host to another using the net::telnet module. I can telnet to a single host OK but I need to then...
    2. net::telnet to ms telnet server
      i need to connect to a microsoft telnet server via net::telnet (and io::pty). i can connect and communicate successfully via the telnet command in...
    3. Net::Telnet problem with MS Telnet Service
      Hello, After reading the Net::Telnet documentation, examples, searching the 'Net, etc., I still do not completely understand the problem of...
    4. TRYING AGAIN (was: Net::Telnet)
      I am sure somebody would have a magical touch for me. -Sharad -----Original Message----- From: Gupta, Sharad Sent: Saturday, August 16, 2003...
    5. telnet
      I want to connect to another computer in my LAN by telnet but i can't.....help me please. thanks.
  3. #2

    Default Re: can't telnet to host

    Sol Linderstein <slinderstein@yahoo.com> wrote:
    > Where else can I look?
    Besides doing analysis of the in.telnetd binary against a known good
    copy, you could 'truss -f -p <inetd PID>' to a file as you attempt to
    telnet in.

    That should show inetd doing the fork/exec of the telnetd process, and
    what that process does later. What interactions the process has might
    lead you to find a cause.

    --
    Darren Dunham [email]ddunham@taos.com[/email]
    Unix System Administrator Taos - The SysAdmin Company
    Got some Dr Pepper? San Francisco, CA bay area
    < This line left intentionally blank to confuse you. >
    Darren Dunham Guest

  4. #3

    Default Re: can't telnet to host

    "Oscar del Rio" <delrio@mie.utoronto.ca> wrote in message news:<HInKwv.Av0@mie.utoronto.ca>...

    ....
    >
    > The "SunOS 5.8" banner is from in.telnetd so inetd is working fine.
    > At that point telnetd is supposed to run /bin/login which will
    > give you the login/password prompts.
    > It seems /bin/login is failing.
    >
    > It is possible that the system was hacked and /bin/login replaced.
    > If you do not know what the former owner did with the machine,
    > I would recommend reinstalling the system from scratch.
    Bingo! We were hacked a while ago. I cleaned up lots of hacked
    binaries but not /bin/login. I put in a good one and telnet works!
    Yes, I know telnet is insecure but I'm not enabling telnet for the
    long-term, just for short-term access for someone who needs to login
    remotely and may not have an ssh client.

    Yes, it's time to reinstall the machine.

    Thanks for the help.

    Sol
    Sol Linderstein Guest

  5. #4

    Default Re: can't telnet to host

    Sol Linderstein wrote:
    > Bingo! We were hacked a while ago. I cleaned up lots of hacked
    > binaries but not /bin/login.
    How do you mean "cleaned up"?
    > Yes, it's time to reinstall the machine.
    Either that or restore from backup.

    -am © 2003
    Anthony Mandic Guest

  6. #5

    Default Re: can't telnet to host


    Anything less than new install on hacked machinemight benefit from a
    check for rootkit.
    chkroot kit will test these binaries and find missing or corrupt bins.
    see:
    [url]http://www.chkrootkit.org/[/url]

    Still best to reinstall.

    --
    drilett


    Posted via [url]http://dbforums.com[/url]
    drilett Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139