Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 26
when i try to connect from one pc (pc1) to the other via ssh i get the following message: connection refused by remote host.although i can use ssh from this ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169

    ssh problem


    when i try to connect from one pc (pc1) to the other via ssh i get the following message:
    connection refused by remote host.although i can use ssh from this pc (pc1)to the other(pc1).what should be wrong?
    Linux For Ever!

  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    check for firewalls, make sure the sshd is running. Both computers are linux, and have ssh2 proticol supported and listening, correct?
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  3. #3
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    i have checked them all the things you said.i don't see something wrong.i also checked /etc/hosts {allow,deny}.what else to do?
    Linux For Ever!

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    the thing i don't really get is why i can connect from pc1 to pc2 via ssh and can't do the same thing from pc2 to pc1..why pc1 refuses connection?i stopped firewall for check,ssh daemons running,used nmap-frotend program to check if ssh (port 21)is open and all seem to work.is there something else to check?i really need to get it working..
    Linux For Ever!

  6. #5
    Just Joined!
    Join Date
    Jul 2004
    Location
    UK
    Posts
    77
    It could be that SSH is not allowed out from PC2. Even though you are getting

    connection refused by remote host
    This doesn't necessarily mean that it's PC1 is rejecting the connection.

    I would look at the setup of PC2.

    Armage

  7. #6
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    so you recommend to see ssh configuration for pc2?i'll do it and post..
    Linux For Ever!

  8. #7
    Just Joined!
    Join Date
    Jul 2004
    Location
    UK
    Posts
    77
    Isn't port 21 used for "FTP".

    SSH should be on Port 22.

    Edit /etc/ssh/sshd_config file and change Port to 22

    Armage

  9. #8
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    it was my fault ,i wrote port 21 (ftp) but i mean 22(ssh).although i use port 22 of course..
    Linux For Ever!

  10. #9
    Just Joined!
    Join Date
    Jul 2004
    Location
    UK
    Posts
    77
    Hi stathisx

    Did you get your SSH problem sorted?


    Armage

  11. #10
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    i'll check it out now and i will post to inform u!
    thanks!
    Linux For Ever!

Page 1 of 3 1 2 3 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
  •