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?
Printable View
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?
check for firewalls, make sure the sshd is running. Both computers are linux, and have ssh2 proticol supported and listening, correct?
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?
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..
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.Quote:
connection refused by remote host
I would look at the setup of PC2.
Armage
so you recommend to see ssh configuration for pc2?i'll do it and post..
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
it was my fault ,i wrote port 21 (ftp) but i mean 22(ssh).although i use port 22 of course..
Hi stathisx
Did you get your SSH problem sorted?
Armage
i'll check it out now and i will post to inform u!
thanks!