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.
- 08-05-2004 #1Linux 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!
- 08-05-2004 #2
- 08-05-2004 #3Linux 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!
- 08-05-2004 #4Linux 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!
- 08-06-2004 #5Just 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
This doesn't necessarily mean that it's PC1 is rejecting the connection.connection refused by remote host
I would look at the setup of PC2.
Armage
- 08-06-2004 #6Linux 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!
- 08-06-2004 #7Just 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
- 08-06-2004 #8Linux 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!
- 08-07-2004 #9Just Joined!
- Join Date
- Jul 2004
- Location
- UK
- Posts
- 77
Hi stathisx
Did you get your SSH problem sorted?
Armage
- 08-07-2004 #10Linux 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!


Reply With Quote
