Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
Hello, I cant config my ssh but i really need it... Some one can show me how to to it?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    May 2012
    Posts
    115

    Sshd


    Hello,


    I cant config my ssh but i really need it...


    Some one can show me how to to it?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,221
    You need it to do what?
    Interactive shell login?

    At least your operating systems and versions as well as the network layout would be needed background information to help you.
    You must always face the curtain with a bow.

  3. #3
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    when i try to connect to the linux via Putty it says: Network error: Connection refused....

    So something is wrong

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,221
    Can you check via a local login, if
    • the sshd daemon is running
      Code:
      ps auwx|grep ssh
    • which port it is listening on
      Code:
      netstat -tunlp |grep ssh
    • a firewall is blocking
      Code:
      iptables -Ln
    You must always face the curtain with a bow.

  5. #5
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    Code:
    [root@localhost joaogl]# ps auwx|grep ssh
    root      7214  0.0  0.0   8472   960 ?        Ss   15:59   0:00 /usr/sbin/sshd
    root      8775  0.0  0.0   4328   764 pts/0    S+   22:09   0:00 grep ssh
    [root@localhost joaogl]# netstat -tunlp |grep ssh
    tcp        0      0 0.0.0.0:31222               0.0.0.0:*                   LISTEN      7214/sshd           
    [root@localhost joaogl]# iptables -Ln
    iptables: No chain/target/match by that name.
    [root@localhost joaogl]#
    What that means?

  6. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,221
    That means, that I forgot to give a complete firewall command

    But the netstat shows, that you run ssh on the non-standard port 31222.
    So you need to tell the client -in your case putty- to connect to this port on the server.
    You must always face the curtain with a bow.

  7. #7
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    Know it says

    Server unexpectedly close networ connection

  8. #8
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    Why this is happing?

  9. #9
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,221
    Maybe a firewall is blocking the connection:
    Code:
    iptables -L -n
    Or the ssh daemon is misconfigured.
    For this, a log of the connection attempt would be usefull.
    You must always face the curtain with a bow.

  10. #10
    Linux Newbie
    Join Date
    May 2012
    Posts
    115
    INPUT
    OUTPUT
    FORWARD

    all accept

Page 1 of 2 1 2 LastLast

Posting Permissions

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