Re: Problem using ssh on N800

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 13, 2009 at 6:30 PM, Graham Cobb <g+770@xxxxxxxxxxx> wrote:
>
> In an earlier email you showed logs (from both ends) of the failing
> connection.  How about getting logs (from both ends) of the successful
> connection from the 770 and comparing them to see what **should** be the next
> thing reported in the log (on each side).  It might give a hint as to what is
> stuck.
>
> You could also try strace on the sshd process (and even on the N800 if you
> have strace installed there) -- see if there is a system call which is not
> returning.

select(): it's waiting for some file to be readable; see logs below.

> My money is still on DNS.  It feels like the host is doing something like a
> reverse DNS lookup which is working for the connection from the 770 and not
> working for the connection from the N800.  Can you arrange for their IP
> adresses to be swapped (e.g. by setting the access point to give give out
> fixed addresses for them) and see if the problem is still there?

debug3: Trying to reverse map address 192.168.0.7.

This must fail in both cases, though. The AP's DNS does not collect
hostnames for local machines. Also the IP addresses can change at each
connection, I don't think there are any "lucky" addresses.

> Have you tried specifying a command to execute instead of a shell?  E.g. "ssh
> <host> ls".

No joy.

Here's the strace logs for both ITs. Just the clients, I've run out of time.

N800 - strace ssh -v:

write(2, "debug1: Sending env LC_MESSAGES ="..., 41debug1: Sending env
LC_MESSAGES = en_GB) = 41
getsockopt(3, SOL_TCP, TCP_NODELAY, [0], [4]) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(51823),
sin_addr=inet_addr("192.168.0.7")}, [16]) = 0
setsockopt(3, SOL_IP, IP_TOS, [16], 4)  = 0
select(7, [3], [3], NULL, NULL)         = 1 (out [3])
write(3, "\f\330\225\203s\300\325_\362l\263\24G\347\275p}\327\\x\375\221\\\231A\352~c5R\"\3755"...,
576) = 576
select(7, [3], [], NULL, NULL


770 - strace ssh -v:

write(2, "debug1: Authentication succeeded"..., 58debug1:
Authentication succeeded (keyboard-interactive).) = 58
dup(0)                                  = 4
dup(1)                                  = 5
dup(2)                                  = 6
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(2, "debug1: channel 0: new [client-s"..., 41debug1: channel 0:
new [client-session]) = 41
write(2, "debug1: Entering interactive ses"..., 39debug1: Entering
interactive session.) = 39
gettimeofday({1234564405, 714429}, NULL) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGINT, NULL, {SIG_IGN}, 8) = 0
rt_sigaction(SIGINT, {0xee08, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_IGN}, 8) = 0
rt_sigaction(SIGQUIT, {0xee08, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTERM, {0xee08, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGWINCH, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGWINCH, {0xede8, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 -opost -isig -icanon
-echo ...}) = 0
select(7, [3], [3], NULL, NULL)         = 1 (out [3])
write(3, "\20\366x\374^e5n\37{\'\267\256H\336\221EvW9\313\331\377"..., 64) = 64
select(7, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "\0\216\332\2464\323E\202\344\33Mv\260\2706\205\257~\307"..., 8192) = 48
ioctl(0, TIOCGWINSZ, {ws_row=16, ws_col=76, ws_xpixel=0, ws_ypixel=0}) 0
getsockopt(3, SOL_TCP, TCP_NODELAY, [0], [4]) 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(2873),
sin_addr=inet_addr("192.168.0.3")}, [16]) 0
setsockopt(3, SOL_IP, IP_TOS, [16], 4) 0
select(7, [3], [3], NULL, NULL) 1 (out [3])
write(3, "|\313\316\323\315\277\10\25\324\27Q\202s\332\5\236Qx\374"..., 384) 384
select(7, [3], [], NULL, NULL) 1 (in [3])
read(3, "\204\274l(\370<Xb\345!\31b\340\20679\f\305\24# \252\207"..., 8192) 240
select(7, [3], [], NULL, NULL) 1 (in [3])
read(3, "\204\274l(\370<Xb\345!\31b\340\20679\f\305\24# \252\207"..., 8192) 240
select(7, [3 4], [5], NULL, NULL) 1 (out [5])
write(5, "Linux aten 2.6.26 #1 SMP Tue Sep"..., 151
Linux aten 2.6.26 #1 SMP Tue Sep 9 01:39:44 BST 2008 i686 Libranet
GNU/Linux You have mail.  Last login: Fri Feb 13 12:00:41 2009 from
thoth.local) 151

I'm going to have to backburner this for a few days but please keep
sending suggestions, I'll try them out when I can.

Cheers
  Martin
_______________________________________________
maemo-users mailing list
maemo-users@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux