Re: ssh Connection refused

2004-04-13 Thread RazorOnFreeBSD

- Original Message - 
From: Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED]
To: RazorOnFreeBSD [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 4:19 AM
Subject: Re: ssh Connection refused


 RazorOnFreeBSD wrote:

 I have a firewall and it's running.
 But the outputs for the command ps -auxv | grep sshd are :
 
 root93  0.00.430082176??Is6:19PM
0:00.16
 /usr/sbin/sshd
 root1680.00.0336  204  v0R+  6:58PM
0:00.01
 grep sshd
 
 I don't really understand why I have two processes from sshd and also why
I
 can't connect if it is running (apparently).
 
 ???
 
 
 

 Two processes?  Please note that one process is the
 grep command.  Sshd does appear to be running,
 though.

 You didn't give us the output of ipfw show, so
 we don't know if the port is being blocked; it seems
 like that it is, since you are being told connection
 refused.  Connection refused means the port is
 closed, either because nothing is listening on that
 port, or because the firewall is blocking it...

 How about netstat -anf inet ?  It should show a
 LISTENING socket on port 22 for ssh

 Kevin Kinsey

Thanks for the ps / grep information.
In my rc.conf file, I already set the firewall type on OPEN, so the ipfw
show outputs are (with rl0 = OIF and dc0 = IIF) :

0005039741855775divert 8668 ip any from any via rl0
00100100  15316allow ip from any to any via lo0
002000  0deny ip from any to 127.0.0.0/8
003000  0deny ip from 127.0.0.0/8 to any
6500074375  16354274  allow ip from any to any
655350  0deny ip from any to any

here are samples of netstat -anf inet outputs :

ProtoRecQSendQLocal AddressForeign Address
(state)

tcp4  0   0*.22*.*
LISTEN
tcp460   0*.22*.*
LISTEN

Do you think the sshd daemon could be altered itself  I mean could have
a behaviour it isn't suppose to have because of the forced shutdown ???

Thanks

razor.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh Connection refused

2004-04-13 Thread Kevin D. Kinsey, DaleCo, S.P.
RazorOnFreeBSD wrote:

- Original Message - 
From: Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED]
To: RazorOnFreeBSD [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 4:19 AM
Subject: Re: ssh Connection refused
 

Thanks for the ps / grep information.
In my rc.conf file, I already set the firewall type on OPEN, so the ipfw
show outputs are (with rl0 = OIF and dc0 = IIF) :
 

snip

here are samples of netstat -anf inet outputs :

 

snip

Do you think the sshd daemon could be altered itself  I mean could have
a behaviour it isn't suppose to have because of the forced shutdown ???
Thanks

razor.
 

I guess anything is somewhat possible.  I'm just
looking for the most likely stuff first ...
Can you ssh [EMAIL PROTECTED] ?

What about tcpwrappers?  What is in /etc/hosts.allow?

Tried rebooting or HUPing the daemon?

   #/bin/kill -HUP 93

(or whatever the current PID is for /usr/sbin/sshd)

Kevin Kinsey
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh Connection refused

2004-04-13 Thread RazorOnFreeBSD
Ok Kevin, I really would like to thank you for your help and your time.
I restarted the process as you told me and now it works Kind of silly
since I've rebooted my computer many times to restart the ssh daemon!
Oh well at least now I know how to restart a process !  :D

Thanks again.

razor.


- Original Message - 
From: Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED]
To: RazorOnFreeBSD [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 4:38 PM
Subject: Re: ssh Connection refused


 RazorOnFreeBSD wrote:

 - Original Message - 
 From: Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED]
 To: RazorOnFreeBSD [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 4:19 AM
 Subject: Re: ssh Connection refused
 
 
 Thanks for the ps / grep information.
 In my rc.conf file, I already set the firewall type on OPEN, so the
ipfw
 show outputs are (with rl0 = OIF and dc0 = IIF) :
 
 
 
 snip

 here are samples of netstat -anf inet outputs :
 
 
 
 snip

 Do you think the sshd daemon could be altered itself  I mean could
have
 a behaviour it isn't suppose to have because of the forced shutdown ???
 
 Thanks
 
 razor.
 
 

 I guess anything is somewhat possible.  I'm just
 looking for the most likely stuff first ...

 Can you ssh [EMAIL PROTECTED] ?

 What about tcpwrappers?  What is in /etc/hosts.allow?

 Tried rebooting or HUPing the daemon?

 #/bin/kill -HUP 93

 (or whatever the current PID is for /usr/sbin/sshd)

 Kevin Kinsey



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh Connection refused

2004-04-13 Thread Remko Lodder
I guess anything is somewhat possible.  I'm just
looking for the most likely stuff first ...
Can you ssh [EMAIL PROTECTED] ?
Another thingy you can try:
if you logged in from console (if possible) can you telnet to
localhost 22 ? (or whatever ip the sshd is listening on).
Hope this helps as well :-)

What about tcpwrappers?  What is in /etc/hosts.allow?

Tried rebooting or HUPing the daemon?

   #/bin/kill -HUP 93

(or whatever the current PID is for /usr/sbin/sshd)

Kevin Kinsey
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


--

Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl A Dutch community for helping newcomers on the 
hackerscene
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh Connection refused

2004-04-13 Thread Joshua Lokken
* Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED] [2004-04-13 07:52]:
 RazorOnFreeBSD wrote:
 
 - Original Message - 
 From: Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED]
 To: RazorOnFreeBSD [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 4:19 AM
 Subject: Re: ssh Connection refused
  
 
 I guess anything is somewhat possible.  I'm just
 looking for the most likely stuff first ...
 
 Can you ssh [EMAIL PROTECTED] ?
 
 What about tcpwrappers?  What is in /etc/hosts.allow?
 
 Tried rebooting or HUPing the daemon?
 
#/bin/kill -HUP 93
 
 (or whatever the current PID is for /usr/sbin/sshd)
 

In the future, to start and restop sshd (without rebooting), just do:

# kill -HUP `cat /var/run/sshd.pid`

HTH,

-- 
Joshua

I object to intellect without discipline;  I object to power without
constructive purpose.
-- Spock, The Squire of Gothos, stardate 2124.5

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh Connection refused

2004-04-13 Thread RazorOnFreeBSD

- Original Message - 
From: Joshua Lokken [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 5:19 PM
Subject: Re: ssh Connection refused


 * Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED] [2004-04-13 07:52]:
  RazorOnFreeBSD wrote:
 
  - Original Message - 
  From: Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED]
  To: RazorOnFreeBSD [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Tuesday, April 13, 2004 4:19 AM
  Subject: Re: ssh Connection refused
  
 
  I guess anything is somewhat possible.  I'm just
  looking for the most likely stuff first ...
 
  Can you ssh [EMAIL PROTECTED] ?
 
  What about tcpwrappers?  What is in /etc/hosts.allow?
 
  Tried rebooting or HUPing the daemon?
 
 #/bin/kill -HUP 93
 
  (or whatever the current PID is for /usr/sbin/sshd)
 

 In the future, to start and restop sshd (without rebooting), just do:

 # kill -HUP `cat /var/run/sshd.pid`

 HTH,

 -- 
 Joshua

 I object to intellect without discipline;  I object to power without
 constructive purpose.
 -- Spock, The Squire of Gothos, stardate 2124.5


Thanks Joshua... so maybe you know how to do the same with the firewall... I
mean restart the firewall without rebooting ?

razor


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ssh Connection refused

2004-04-12 Thread RazorOnFreeBSD
Hi everyone,

I just had an electricity problem ... my freebsd server lost the power and shutted 
down without being requested.
So far everything looks good on the system, except for sshd
When the kernel boot up it is one of the daemons started, it is clearly written. 
Except that it's not anymore reachable from another pc. 
Just before this elictricity accident, everything was find and I could use remotely my 
freebsd server (thanks to you guys for the root tips), since then I can't even log 
with a regular user it says :

ssh: connect to host 192.168.1.1 port 22: connection refused.

I really think some file was altered by the electricity problem, but I searched 
without being successful 
I'm still learning the all thing about freebsd :/ !!!

Thanks for your help.

razor


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh Connection refused

2004-04-12 Thread RazorOnFreeBSD
I have a firewall and it's running.
But the outputs for the command ps -auxv | grep sshd are :

root93  0.00.430082176??Is6:19PM0:00.16
/usr/sbin/sshd
root1680.00.0336  204  v0R+  6:58PM0:00.01
grep sshd

I don't really understand why I have two processes from sshd and also why I
can't connect if it is running (apparently).

???


- Original Message - 
From: Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED]
To: RazorOnFreeBSD [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 1:55 AM
Subject: Re: ssh Connection refused


 RazorOnFreeBSD wrote:

 Hi everyone,
 
 I just had an electricity problem ... my freebsd server
 lost the power and shutted down without being requested.
 So far everything looks good on the system, except for sshd
 When the kernel boot up it is one of the daemons started,
 it is clearly written. Except that it's not anymore reachable
 from another pc.
 
 Just before this elictricity accident, everything was find
 and I could use remotely my freebsd server (thanks to you
 guys for the root tips), since then I can't even log
 with a regular user it says :
 
 ssh: connect to host 192.168.1.1 port 22: connection refused.
 
 I really think some file was altered by the electricity problem, but I
searched without being successful
 I'm still learning the all thing about freebsd :/ !!!
 
 Thanks for your help.
 
 
 

 So, you have console, we hope?

 First, make *sure* that sshd is running...

   $ps -auxv | grep sshd

 If it isn't, check /etc/rc.conf, it should say:

  sshd_enable=YES

 What about the firewall, do you have one?

  $ipfw show



 Kevin Kinsey
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ssh Connection refused

2004-04-12 Thread Kevin D. Kinsey, DaleCo, S.P.
RazorOnFreeBSD wrote:

I have a firewall and it's running.
But the outputs for the command ps -auxv | grep sshd are :
root93  0.00.430082176??Is6:19PM0:00.16
/usr/sbin/sshd
root1680.00.0336  204  v0R+  6:58PM0:00.01
grep sshd
I don't really understand why I have two processes from sshd and also why I
can't connect if it is running (apparently).
???

 

Two processes?  Please note that one process is the
grep command.  Sshd does appear to be running,
though.
You didn't give us the output of ipfw show, so
we don't know if the port is being blocked; it seems
like that it is, since you are being told connection
refused.  Connection refused means the port is
closed, either because nothing is listening on that
port, or because the firewall is blocking it...
How about netstat -anf inet ?  It should show a
LISTENING socket on port 22 for ssh
Kevin Kinsey
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SSH: connection refused

2003-06-17 Thread haifa touati
Hi all,
I tried to ssh to a remote machine from a FreeBSD 4.5 machine, but I received ... 
connection refused message. However I succeeded to connect to this machine from 
Windows. Are there any specifics settings to fix this?
Thanks in advance,
Haïfa.



-
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SSH: connection refused

2003-06-17 Thread Kenneth Culver


On Tue, 17 Jun 2003, [iso-8859-1] haifa touati wrote:

 Hi all, I tried to ssh to a remote machine from a FreeBSD 4.5 machine,
 but I received ... connection refused message. However I succeeded to
 connect to this machine from Windows. Are there any specifics settings
 to fix this? Thanks in advance, Haïfa.

What were you using to connect from the windows machine?

Ken



 -
 Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
 Testez le nouveau Yahoo! Mail
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]