Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17
Ok, if you have excluded the firewall as a problem, then maybe sshd is misconfigured. If you configured sshd yourself: What did you do? If someone else did it: Ask ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,387

    Ok, if you have excluded the firewall as a problem,
    then maybe sshd is misconfigured.

    If you configured sshd yourself: What did you do?
    If someone else did it: Ask him/her about the config
    You must always face the curtain with a bow.

  2. #12
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    i did so much things to it watched films on youtube websites....

    Can you teach me how to reset as Default and teach me how to config it?

  3. #13
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,387
    Reset to default:
    One way of foing this is to delete or move away the sshd_config file and then reinstall the whole openssh-server package.
    It is a bit brute force, but will work.
    Are you using a rpm or deb based distribution?

    For a redhat-related distribution (redhat, centos, scientific linux, fedora,..) this should work:
    Code:
    mv /etc/ssh/sshd_config /etc/ssh/sshd_config_borked
    yum reinstall openssh-server
    Teaching ssh.. How many months time do you have?
    But seriously, the default config is good to go imho, with maybe the exception of allowed root logins.
    You must always face the curtain with a bow.

  4. #14
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    I just want to the sshd server work... it all... i will test it know

  5. #15
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    f.... I says the same...... Server unexpectedly close network connection

  6. #16
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,387
    I take it, you have a rpm distro then?

    Then please do:
    Code:
    rpm -V openssh-server
    And post the output.


    You did restart the sshd server after the config was reinstalled?

    Edit: removed the pipe to grep to see complete output.
    Last edited by Irithori; 05-28-2012 at 03:39 PM.
    You must always face the curtain with a bow.

  7. #17
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    You did restart the sshd server after the config was reinstalled?
    No

    And post the output.
    package opensshd-server is not installed


    Code:
    Edit: removed the pipe to grep to see complete output.
    What?

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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