Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, i checked on rhel VPS is running sshd (service ssh status) But i cant connect via putty: "Network error: Connection refused" Please which log file in my centos rhel ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    341

    SSHd is running, but cant connect "Network error: Connection refused"


    Hi, i checked on rhel VPS is running sshd
    (service ssh status)

    But i cant connect via putty: "Network error: Connection refused"

    Please which log file in my centos rhel linux i need to watch or what are steps to do to discover cause?
    "Avoid the Gates of Hell. Use Linux affordable VPS."

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,637
    Is port 22 open on the firewall?
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  3. #3
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    341
    Quote Originally Posted by elija View Post
    Is port 22 open on the firewall?
    Thanks for help,

    iptables -L
    Code:
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    I found that in /etc/ssh/sshd_config i had some exotic port set, so i changed to 22 and restarted sshd (service sshd restart) and now i CAN CONNECT.
    Do i need to add any firewall rule?
    "Avoid the Gates of Hell. Use Linux affordable VPS."

  4. $spacer_open
    $spacer_close

Posting Permissions

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