Re: random disconnects on openbsd4.7

2010-09-03 Thread Marcos Laufer
Hi, this is what i get when connecting with ssh -vvv:



srv1:/root{5240}# ssh -vvv obsd47
OpenSSH_4.8, OpenSSL 0.9.7j 04 May 2006
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to obsd47 [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5
debug1: match: OpenSSH_5.5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.8
debug2: fd 4 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: blowfish-cbc
debug2: kex_parse_kexinit: blowfish-cbc
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,umac...@openssh.com,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,umac...@openssh.com,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: z...@openssh.com,zlib,none
debug2: kex_parse_kexinit: z...@openssh.com,zlib,none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: 
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
debug2: kex_parse_kexinit: 
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,umac...@openssh.com,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,umac...@openssh.com,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,z...@openssh.com
debug2: kex_parse_kexinit: none,z...@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server-client blowfish-cbc hmac-md5 z...@openssh.com
debug2: mac_setup: found hmac-md5
debug1: kex: client-server blowfish-cbc hmac-md5 z...@openssh.com
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 125/256
debug2: bits set: 515/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /root/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 90
debug3: check_host_in_hostfile: filename /root/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 91
debug1: Host 'obsd47' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:90
debug2: bits set: 524/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: rsa-key-20051011 (0x8acf2580)
debug2: key: /root/.ssh/id_rsa (0x0)
debug2: key: /root/.ssh/id_dsa (0x0)
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug3: start over, passed a different list 
publickey,password,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: rsa-key-20051011
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Trying private key: /root/.ssh/id_rsa
debug3: no such identity: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: 

Re: random disconnects on openbsd4.7

2010-09-03 Thread Fred Crowson
2010/9/3 Marcos Laufer mar...@ipv4networks.com:
 Hi, this is what i get when connecting with ssh -vvv:

 srv1:/root{5240}# ssh -vvv obsd47
 OpenSSH_4.8, OpenSSL 0.9.7j 04 May 2006

/snipped

 obsd47:~{1}# debug1: channel 0: free: client-session, nchannels 1
 debug3: channel 0: status: The following connections are open:
   #0 client-session (t4 r0 i0/0 o0/0 fd 5/6 cfd -1)

 debug3: channel 0: close_fds r 5 w 6 e 7 c -1
 Read from remote host obsd47: Connection reset by peer
 Connection to obsd47 closed.
 debug1: Transferred: stdin 0, stdout 0, stderr 92 bytes in 2406.7 seconds
 debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
 debug1: Exit status -1
 debug1: compress outgoing: raw data 401, compressed 235, factor 0.59
 debug1: compress incoming: raw data 773, compressed 365, factor 0.47
 srv1:/root{5241}#

Does setting the ServerAliveInterval (see ssh_config(5)) make any difference?

hth

Fred



Re: random disconnects on openbsd4.7

2010-09-03 Thread Stuart Henderson
Lots of possibilities here. Broken firewall configuration
(especially with load-balancing), lost firewall state,
broken network somewhere, NAT state timeouts, ...

 OpenBSD 4.7-stable (GENERIC.MP) #0: Fri Aug 20 16:38:15 ART 2010

 Welcome to OpenBSD: The proactively secure Unix-like operating system.

 obsd47:~{1}#
 obsd47:~{1}# debug1: channel 0: free: client-session, nchannels 1
 debug3: channel 0: status: The following connections are open:
   #0 client-session (t4 r0 i0/0 o0/0 fd 5/6 cfd -1)

 debug3: channel 0: close_fds r 5 w 6 e 7 c -1
 Read from remote host obsd47: Connection reset by peer
 Connection to obsd47 closed.
 debug1: Transferred: stdin 0, stdout 0, stderr 92 bytes in 2406.7 seconds
 debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
 debug1: Exit status -1
 debug1: compress outgoing: raw data 401, compressed 235, factor 0.59
 debug1: compress incoming: raw data 773, compressed 365, factor 0.47
 srv1:/root{5241}#



Re: random disconnects on openbsd4.7

2010-08-24 Thread Fred Crowson
2010/8/24 Marcos Laufer mar...@ipv4networks.com:
 Hello list, i'm having random logoffs from a recently installed OpenBSD 4.7
 installed on a DL360 server, and updated to stable.
 The symptoms are simple, i log in, wait a while, and i get suddenly logged
 off.

 It goes like this:

 obsd47:~{8}#
 Read from remote host obsd47: Connection reset by peer
 Connection to obsd47 closed.
 srv1:/root{4994}#
 srv1:/root{4994}#
 srv1:/root{4994}# ssh obsd47
 r...@obsd47's password:
 Last login: Mon Aug 23 22:04:07 2010 from srv1
 OpenBSD 4.7-stable (GENERIC.MP) #0: Fri Aug 20 16:38:15 ART 2010


Hi,

Using ssh -vvv might give some further clues to the issue.

hth

Fred



Re: random disconnects on openbsd4.7

2010-08-24 Thread Patrick Coleman
2010/8/24 Marcos Laufer mar...@ipv4networks.com:

 Does anyone sees the same behaviour?

I experienced a similar issue when diagnosing the problem detailed at
http://www.mail-archive.com/t...@openbsd.org/msg02887.html - perhaps
try applying the patch posted by Claudio in that thread?

Cheers,

Patrick

-- 
http://www.labyrinthdata.net.au - WA Backup, Web and VPS Hosting



random disconnects on openbsd4.7

2010-08-23 Thread Marcos Laufer

Hello list, i'm having random logoffs from a recently installed OpenBSD 4.7
installed on a DL360 server, and updated to stable.
The symptoms are simple, i log in, wait a while, and i get suddenly 
logged off.


It goes like this:

obsd47:~{8}#
Read from remote host obsd47: Connection reset by peer
Connection to obsd47 closed.
srv1:/root{4994}#
srv1:/root{4994}#
srv1:/root{4994}# ssh obsd47
r...@obsd47's password:
Last login: Mon Aug 23 22:04:07 2010 from srv1
OpenBSD 4.7-stable (GENERIC.MP) #0: Fri Aug 20 16:38:15 ART 2010

Welcome to OpenBSD: The proactively secure Unix-like operating system.

obsd47:~{1}# dmesg
OpenBSD 4.7-stable (GENERIC.MP) #0: Fri Aug 20 16:38:15 ART 2010
   r...@obsd47.test.com:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III (GenuineIntel 686-class) 931 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MM  
X,FXSR,SSE

real mem  = 536424448 (511MB)
avail mem = 511025152 (487MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf, 
SMBIOS   rev. 2.3 @ 0xf206c 
(23 entries)

bios0: vendor Compaq version P21 date 01/09/2001
bios0: Compaq ProLiant DL360
acpi0 at bios0: rev 0, can't enable ACPI
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 3 (boot processor)
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III (GenuineIntel 686-class) 931 MHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MM  
X,FXSR,SSE

mpbios0: bus 0 is type PCI
mpbios0: bus 3 is type PCI
mpbios0: bus 9 is type ISA
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 11, 35 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
bios0: ROM list: 0xc/0x8000 0xc8000/0x4000! 0xe8000/0x6000 
0xee000/0x2000!

pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 ServerWorks CNB20LE Host rev 0x05
pchb1 at pci0 dev 0 function 1 ServerWorks CNB20LE Host rev 0x05
pci1 at pchb1 bus 3
fxp0 at pci1 dev 4 function 0 Intel 8255x rev 0x08, i82559: apic 8 int 
17 (irq   7), address 
00:50:8b:e2:bd:7b

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
fxp1 at pci1 dev 5 function 0 Intel 8255x rev 0x08, i82559: apic 8 int 
24 (irq   10), address 
00:50:8b:e2:bd:7a

inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
cac0 at pci0 dev 1 function 0 Symbios Logic 53c1510 rev 0x02: apic 8 
int 19 (i  rq 5), Integrated 
Array

scsibus0 at cac0: 2 targets
sd0 at scsibus0 targ 0 lun 0: Compaq, RAID0 vol #00,  SCSI2 0/direct fixed
sd0: 17359MB, 512 bytes/sec, 35553120 sec total
sd1 at scsibus0 targ 1 lun 0: Compaq, RAID0 vol #01,  SCSI2 0/direct fixed
sd1: 17359MB, 512 bytes/sec, 35553120 sec total
vga1 at pci0 dev 3 function 0 ATI Mach64 rev 0x7a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
Compaq Netelligent ASMC rev 0x00 at pci0 dev 4 function 0 not configured
ohci0 at pci0 dev 5 function 0 Opti 82C861 rev 0x10: apic 8 int 21 
(irq 3), ve  rsion 1.0, 
legacy support
piixpm0 at pci0 dev 15 function 0 ServerWorks OSB4 rev 0x51: SMBus 
disabled

pciide0 at pci0 dev 15 function 1 ServerWorks OSB4 IDE rev 0x00: DMA
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: COMPAQ, CD-224E, 9.0B ATAPI 5/cdrom 
removable

cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 Opti OHCI root hub rev 1.00/1.00 addr 1
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
obsd47:~{3}#

Does anyone sees the same behaviour?

Regards,
Marcos Laufer