Find the answer to your Linux question:
Results 1 to 7 of 7
Hi, everyone i am trying to login by using putty into my server which is a centos server version 5.5(final). I am unable to login as i get a error ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie bunty82's Avatar
    Join Date
    Sep 2007
    Location
    Asia
    Posts
    130

    centos putty problem


    Hi, everyone i am trying to login by using putty into my server which is a centos server version 5.5(final). I am unable to login as i get a error of "server unexpectedly closed".
    System Configuration
    OS#Windows Xp pro Sp2
    Intel Core 2 Duo 2.2ghz
    Intel motherboard DG965ry
    Nvidia graphic card 512mb
    2 gb ram
    250gb Sata segate HDD
    160gb sata segate hdd
    D link ethernetcard
    Lg dvd writer
    Lg cd writer

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,384
    That can mean, that sshd itself is up,
    but your users shell cannot be started.

    Do you maybe have a different user to try?
    If not:
    Connect to a out-of-band management console, if available.
    If there is no such thing: use the local console.
    You must always face the curtain with a bow.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,530
    So, are you using SSH protocols, or telnet protocols?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Just Joined! bitonw's Avatar
    Join Date
    Jul 2006
    Location
    Crawley, UK
    Posts
    4
    with what userid do you try to login? bear in mind that root is disabled by default... (what is a good thing)
    you can check the file /etc/ssh/sshd_conf
    PermitRootLogin no

    when looking at this file also check what protocol you are using;
    Port 22
    #Protocol 2,1
    Protocol 2
    in this example sshd uses only protocol 2 (more safe)

    ssh default port 22
    telnet default port 23
    Last edited by bitonw; 02-25-2012 at 10:47 AM.

  5. #5
    Just Joined!
    Join Date
    Mar 2007
    Location
    Melbourne, Australia
    Posts
    30
    Quote Originally Posted by bunty82 View Post
    Hi, everyone i am trying to login by using putty into my server which is a centos server version 5.5(final). I am unable to login as i get a error of "server unexpectedly closed".
    Are you using TCP Wrappers? Make sure that in the file /etc/hosts.allow (also /etc/hosts.deny) you are allowing sshd access from the IP Address you are coming in with! That has tripped me up a bunch of times.

    ak.

  6. #6
    Just Joined! abdul raziq's Avatar
    Join Date
    Dec 2006
    Location
    Quetta
    Posts
    75
    You can also check Iptable and SElinux.


    Thanks
    Last edited by oz; 02-29-2012 at 11:23 AM. Reason: removed manual signature

  7. #7
    Just Joined!
    Join Date
    Feb 2012
    Posts
    2
    Open the SSH port number(Default 22/TCP) towards the ssh client

Posting Permissions

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