LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 06:23 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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, 08: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, 09:00 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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, 04: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, 04: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



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 35 10-23-2017 12:21 AM
Problem connecting to remote fax machine bayard Linux - Hardware 0 10-18-2005 02:41 PM
rsync Syntax Question for Connecting to Remote Windows Machine Linux31 Linux - Networking 3 10-09-2005 02:55 PM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM
ssh to initiate process on remote machine jdarren Linux - Networking 3 03-23-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:57 PM.

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
Open Source Consulting | Domain Registration