-   Debian (
-   -   ssh not connecting to a remote machine. (

Eux 09-21-2004 01:17 AM

ssh not connecting to a remote machine.
Hi again you guys......

I have this little problem that I almost feel ashamed to bother you guys with.

I have a Debian Woody and a Mandrake 10 machines and I want to copy some archives from one machine to another - the thing is that one of these cannot copy (scp) or connect (ssh) to the other, the error I get is:

"port 22: connection refused"

I deleted the ip address that existed in the file '.ssh/known_hosts' - plus I added the correct ip address from the remote machine to the '/etc/hosts_allow' file.

What am I missing?


masand 09-21-2004 06:23 AM


if u cold portscan the other machine to find out whether the port 22 was open by

nmap <ipaddress>

or see if any firewall is running


Eux 09-21-2004 08:54 AM

Thanks for the hint.

Just tell me, if that is the case, how can I open the port - what command do I use? Or program?

Thank you again"!

masand 09-21-2004 09:00 AM

hi there

first see if ssh is runnig on that machine by

service ssh startus
service sshd status

if it is running ,then se what firewall u r using and u need to edit ur firewall scrippt for that


bennethos 09-21-2004 04:17 PM

another check to be made
Also check your sshd_config, if you reconfigged the sshd server to listen to port 110 for example it won't listen to port 22

it should be located in /etc/sshd/sshd_config


Eux 09-22-2004 04:44 AM

Sorry guys - I really feel a fool for not considering this sooner - but the problem was that i did not have the ssh program installed.

But thank you all for your time in helping a friend.

Thanks again"!

All times are GMT -5. The time now is 02:46 AM.