Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
I am running Redhat8.0. When I try to ssh from work to my home computer I get a "connection refused" error. I use to be able to do it before ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2003
    Posts
    56

    ssh connection refused


    I am running Redhat8.0. When I try to ssh from work to my home computer I get a "connection refused" error. I use to be able to do it before with 7.2. I cant even telnet in.(not that I would want to) =) I checked and sshd is running. I even tried to ssh to myself at home and got the same error. If I try using my internal IP to ssh to myself it works. But I still cant seem to do it from work or home using my internet IP. Thanks

  2. #2
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Sounds like you have a firewall blocking port 22.b Check iptables --list

  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    (Side note: Why do you use the long option names, genlee? Why not iptables -L?)

  4. #4
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Because he probably doesn't know what iptables is or what -L would mean so if I use the long options, atleast he has some clue as to what is going on.

  5. #5
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    I kind of suspected that. It's not really like you, though.

  6. #6
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    I am in the giving mood today

  7. #7
    Just Joined!
    Join Date
    Feb 2003
    Posts
    56

    iptables --list

    Ok I did iptables --list and this is what I got...

    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

    Thanks

  8. #8
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    OK, that's strange. Can you send the output of netstat -antp, too?

  9. #9
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Are you sure you have sshd running?

  10. #10
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Quote Originally Posted by bionik
    If I try using my internal IP to ssh to myself it works.

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
  •