Find the answer to your Linux question:
Results 1 to 8 of 8
I have a problem with not being able to do self telnet on a server with RHEL 4.0. In another server, self telnet is working fine. Self telnet is required ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    33

    Self telnet not working on server with RHEL 4.0

    I have a problem with not being able to do self telnet on a server with RHEL 4.0. In another server, self telnet is working fine. Self telnet is required for one of our provisioning integrations to work in our application. The output of both the servers is attached:-

    1) Working on server with IP 10.10.10.28

    --------------------------------------------------------------------------------------------------------

    [root@JISPSERVER_OLD root]# telnet 10.10.10.28
    Trying 10.10.10.28...
    Connected to 10.10.10.28 (10.10.10.2.
    Escape character is '^]'.
    Red Hat Enterprise Linux ES release 3 (Taroon)
    Kernel 2.4.21-4.ELsmp on an i686
    login: root
    Password:
    Last login: Wed Jun 3 14:08:48 from 10.10.10.9
    You have new mail.
    [root@JISPSERVER_OLD root]#

    --------------------------------------------------------------------------------------------------------

    2) Not working on server with IP 10.10.10.4

    --------------------------------------------------------------------------------------------------------

    [root@JISPSERVER ~]# telnet 10.10.10.4
    Trying 10.10.10.4...
    Connected to jisp (10.10.10.4).
    Escape character is '^]'.

    JISPSERVER (Linux release 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006) (2)

    login: root
    Password for root:
    Login incorrect
    Connection closed by foreign host.
    [root@JISPSERVER ~]#

    --------------------------------------------------------------------------------------------------------

    I hope, my question is clear.

    Please, help in solving the doubt.

    Regards

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by ran_sushmi View Post
    I have a problem with not being able to do self telnet on a server with RHEL 4.0. In another server, self telnet is working fine. Self telnet is required for one of our provisioning integrations to work in our application. The output of both the servers is attached:-

    1) Working on server with IP 10.10.10.28

    --------------------------------------------------------------------------------------------------------
    Code:
    [root@JISPSERVER_OLD root]# telnet 10.10.10.28
    Trying 10.10.10.28...
    Connected to 10.10.10.28 (10.10.10.28).
    Escape character is '^]'.
    Red Hat Enterprise Linux ES release 3 (Taroon)
    Kernel 2.4.21-4.ELsmp on an i686
    login: root
    Password: 
    Last login: Wed Jun  3 14:08:48 from 10.10.10.9
    You have new mail.
    [root@JISPSERVER_OLD root]#
    --------------------------------------------------------------------------------------------------------

    2) Not working on server with IP 10.10.10.4

    --------------------------------------------------------------------------------------------------------
    Code:
    [root@JISPSERVER ~]# telnet 10.10.10.4
    Trying 10.10.10.4...
    Connected to jisp (10.10.10.4).
    Escape character is '^]'.
    
        JISPSERVER (Linux release 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006) (2)
    
    login: root
    Password for root: 
    Login incorrect
    Connection closed by foreign host.
    [root@JISPSERVER ~]#
    --------------------------------------------------------------------------------------------------------

    I hope, my question is clear.

    Please, help in solving the doubt.

    Regards
    Are you sure you have telnet configured properly for your RHEL 4 server? Also note that I put your example commands+output inside a code block. That will keep things like 8paren from showing a smiley face as in .
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    33
    Hi,

    thanks a lot for your answer. Is there a way to check if telnet has been configured properly?

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by ran_sushmi View Post
    thanks a lot for your answer. Is there a way to check if telnet has been configured properly?
    Well, since it connects and asks for a user id and password, I think it is configured to be active (see /etc/xinetd.d/telnet settings), but it isn't authenticating the user, which means that the problem is probably not in telnet, but in the system authentication system. Some systems are configured to disallow remote connections by root for security. Make sure you are trying to login with a user account that is valid on the system you are trying to connect with.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Banned
    Join Date
    Jun 2009
    Posts
    1
    Most likely root login is disabled. To check look at your sshd_config file and verifyt that PermitRoot login is set to "yes". You'll need to HUP or restart sshd for the setting to take effect.

  6. #6
    Just Joined!
    Join Date
    Nov 2008
    Posts
    33
    thanks, for your answer. I checked the PermitRoot login and saw it is commented as below-

    -------------------------------------
    #PermitRootLogin yes
    -------------------------------------

    But, the other server is with RHEL 3.0(10.10.10.2 as written in the post and self telnet is working on that. Should I go ahead with uncommenting the line?

    Also, how to HUP or restart sshd and any adverse effect on the server as it is a live server.

    Regards

  7. #7
    Just Joined!
    Join Date
    Nov 2008
    Posts
    33
    sorry, the server is 10.10.10.28 and not a smiley as it came in the reply

  8. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Yes, you can uncomment it, and restart the sshd service with the command (as root): service sshd restart
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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