LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 09-21-2004, 02:17 AM   #1
Eux
Member
 
Registered: Apr 2004
Location: Spain
Distribution: Debian (Woody+Sarge)
Posts: 54

Rep: Reputation: 15
Post 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
 
Old 09-21-2004, 07:23 AM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 09-21-2004, 09:54 AM   #3
Eux
Member
 
Registered: Apr 2004
Location: Spain
Distribution: Debian (Woody+Sarge)
Posts: 54

Original Poster
Rep: Reputation: 15
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"!
 
Old 09-21-2004, 10:00 AM   #4
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 09-21-2004, 05:17 PM   #5
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
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
 
Old 09-22-2004, 05:44 AM   #6
Eux
Member
 
Registered: Apr 2004
Location: Spain
Distribution: Debian (Woody+Sarge)
Posts: 54

Original Poster
Rep: Reputation: 15
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"!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 34 05-24-2013 10:28 AM
Problem connecting to remote fax machine bayard Linux - Hardware 0 10-18-2005 03:41 PM
rsync Syntax Question for Connecting to Remote Windows Machine Linux31 Linux - Networking 3 10-09-2005 03:55 PM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 08:39 PM
ssh to initiate process on remote machine jdarren Linux - Networking 3 03-23-2004 06:55 PM


All times are GMT -5. The time now is 11:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration