Thanks! Yes, I'm suspecting that it's either the W-Router that's causing the problem because connecting to the same machine by using the local ip (eg. 192.168.0.25) means I can stay connect as long as I like... but (like  in my previous e-mail) connecting to the same machine using the W-router's IP (public IP,  port forwarded to 192.168.0.25) causes the "Connection Reset" to occur.

No issue for connection from outside the LAN.



On 4/11/06, fooler <[EMAIL PROTECTED]> wrote:
----- Original Message -----
From: R. Martinez
To: Philippine Linux Users' Group (PLUG) Technical Discussion List
Sent: Thursday, April 06, 2006 6:54 PM
Subject: Re: [plug] OpenSSH/SFTP gotcha ( logged in but can't list
files )--help

>Apr  6 20:45:18 makati sshd[20961]: Read error from remote host
>::ffff:XXX.XXX.XXX.XXX: Connection reset by peer

as the log shows above.. it means that while the server is waiting for the
data from the client side... the select(2) function returns that the
filedescriptor is in ready state for reading for incoming data from the
client... unfortunately when the server calls the read(2) function...
instead of returning the number of bytes for the data or zero byte indicates
for the end-of-file.... it returns -1 that there is an error during read...
a global variable *errno* is set to indicate the error  and according to
strerror(errno) it says "Connection reset by peer"... you can see that at
serverloop.c at process_input() function...

the problem is not on your server but on your client side according to the
log... but it could be the server resetting the connection by other means...
if you know how to interpret tcp transaction thru any packet analyzer (eg.
tcpdump)... it will give you a clear picture who was the culprit...

fooler.

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to