LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   ssh not connecting to a remote machine. (https://www.linuxquestions.org/questions/debian-26/ssh-not-connecting-to-a-remote-machine-233227/)

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?



Thanks

masand 09-21-2004 06:23 AM

hi

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

regards

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
or
service sshd status

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

regards

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


grtZ

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 06:50 AM.