Hi Craig,
On Thu, 2005-04-28 at 16:39 -0700, Craig Hughes wrote:
> Phil,
>
> what does
>
> ssh -v root@...
>
Ok, for usb0:
[phil@... ~]$ ssh -v root@...
OpenSSH_4.0p1, OpenSSL 0.9.7f 22 Mar 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 10.0.0.10 [10.0.0.10] port 22.
debug1: Connection established.
debug1: identity file /home/phil/.ssh/identity type -1
debug1: identity file /home/phil/.ssh/id_rsa type -1
debug1: identity file /home/phil/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version
dropbear_0.44
debug1: no match: dropbear_0.44
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.0
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-sha1 none
debug1: kex: client->server aes128-cbc hmac-sha1 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
The authenticity of host '10.0.0.10 (10.0.0.10)' can't be established.
RSA key fingerprint is d2:4a:ae:5e:8a:cf:ce:ab:c9:64:7e:ce:c0:c7:7b:1d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.0.10' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/phil/.ssh/identity
debug1: Trying private key: /home/phil/.ssh/id_rsa
debug1: Offering public key: /home/phil/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
root@... password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
Welcome to Gumstix!
By default, this gumstix is configured for MMC support.
Unfortunately, this means Compact Flash support has to be
disabled out of the box. To turn off MMC and turn on CF,
edit the file /etc/modules and comment out or delete the MMC
lines; then rename /etc/init.d/s30pcmcia to /etc/init.d/S30pcmcia
and reboot.
It looks OK to me.
Output from netstat -l:
# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 *:www *:*
LISTEN
tcp 0 0 *:ssh *:*
LISTEN
udp 0 0 *:5353 *:*
Now with pppd started:
# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 *:www *:*
LISTEN
tcp 0 0 *:ssh *:*
LISTEN
udp 0 0 *:5353 *:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
Looks like it is binding to all interfaces.
Now, logged in on ttyS0:
# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 *:www *:*
LISTEN
tcp 0 0 *:ssh *:*
LISTEN
udp 0 0 *:5353 *:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 6 [ ] DGRAM 338 /tmp/log
unix 2 [ ] DGRAM 442
unix 2 [ ] DGRAM 385
unix 2 [ ] DGRAM 342
unix 2 [ ] DGRAM 341
unix 3 [ ] STREAM CONNECTED 158
unix 3 [ ] STREAM CONNECTED 157
And nothing in /var/log/messages indicating any errors.
So, I have a gprs modem attached, which will respond to pings fine:
[phil@... ~]$ ping 213.233.149.100
PING 213.233.149.100 (213.233.149.100) 56(84) bytes of data.
64 bytes from 213.233.149.100: icmp_seq=0 ttl=41 time=3097 ms
64 bytes from 213.233.149.100: icmp_seq=1 ttl=41 time=2106 ms
64 bytes from 213.233.149.100: icmp_seq=2 ttl=41 time=1812 ms
64 bytes from 213.233.149.100: icmp_seq=3 ttl=41 time=1852 ms
64 bytes from 213.233.149.100: icmp_seq=4 ttl=41 time=1828 ms
64 bytes from 213.233.149.100: icmp_seq=5 ttl=41 time=1625 ms
64 bytes from 213.233.149.100: icmp_seq=6 ttl=41 time=1610 ms
64 bytes from 213.233.149.100: icmp_seq=7 ttl=41 time=1468 ms
--- 213.233.149.100 ping statistics ---
10 packets transmitted, 8 received, 20% packet loss, time 9012ms
rtt min/avg/max/mdev = 1468.632/1925.350/3097.113/478.371 ms, pipe 5
(Hmm 20% packet loss, didn't see that before.)
and for completeness, here is how I am connecting:
# cat /etc/ppp/peers/gprs
/dev/ttyS2 57600
connect '/usr/sbin/chat -v -f /etc/ppp/chat-gprs'
noauth
defaultroute
debug
usepeerdns
# cat /etc/ppp/chat-gprs
TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 30
OK ATE1
OK AT+cgdcont=1,IP,isp.vodafone.ie
OK ATD*99***1#
dump of /var/log/messages:#
# tail -n 20 /var/log/messages
Jan 1 00:00:21 gumstix kern.info kernel: Set (AF1,out,set)
via /proc/gpio/GPIO47
Jan 1 00:00:21 gumstix kern.info kernel: Set (AF1,in,set)
via /proc/gpio/GPIO49
Jan 1 00:00:21 gumstix kern.info kernel: Set (AF1,out,set)
via /proc/gpio/GPIO48
Jan 1 00:00:22 gumstix kern.debug pppd[255]: sent [IPCP ConfReq id=0x1
<addr 0.0.0.0> <compress VJ 0f 01> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 1 00:00:22 gumstix kern.debug pppd[255]: rcvd [IPCP ConfRej id=0x1
<compress VJ 0f 01>]
Jan 1 00:00:22 gumstix kern.debug pppd[255]: sent [IPCP ConfReq id=0x2
<addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 1 00:00:22 gumstix kern.debug pppd[255]: rcvd [IPCP ConfNak id=0x2
<addr 213.233.149.100> <ms-dns1 213.233.128.1> <ms-dns3 213.233.128.19>]
Jan 1 00:00:22 gumstix kern.debug pppd[255]: sent [IPCP ConfReq id=0x3
<addr 213.233.149.100> <ms-dns1 213.233.128.1> <ms-dns3 213.233.128.19>]
Jan 1 00:00:22 gumstix kern.debug pppd[255]: rcvd [IPCP ConfAck id=0x3
<addr 213.233.149.100> <ms-dns1 213.233.128.1> <ms-dns3 213.233.128.19>]
Jan 1 00:00:22 gumstix kern.notice pppd[255]: local IP address
213.233.149.100
Jan 1 00:00:22 gumstix kern.notice pppd[255]: remote IP address
213.233.149.254
Jan 1 00:00:22 gumstix kern.notice pppd[255]: primary DNS address
213.233.128.1
Jan 1 00:00:22 gumstix kern.notice pppd[255]: secondary DNS address
213.233.128.19
Jan 1 00:01:55 gumstix kern.info init: ^MProcess '/sbin/getty -L ttyS0
115200 vt100' (pid 290) exited. Scheduling it for restart.
Jan 1 00:01:55 gumstix kern.info init: ^MStarting pid 337,
console /dev/null: '/sbin/getty'
Jan 1 00:02:01 gumstix kern.info login[337]: root login on `ttyS0'
Apr 29 08:44:51 gumstix kern.info dropbear[221]: premature exit:
Terminated by signal
Apr 29 08:44:51 gumstix kern.info dropbear[430]: Running in background
Apr 29 08:49:48 gumstix kern.info dropbear[430]: premature exit:
Terminated by signal
Apr 29 08:57:29 gumstix kern.info dropbear[842]: Running in background
The last part is where I restarted dropbear to check whether that made a
difference.
Mind you, I just noticed on the Ping that the current limit light on my
psu is lighting dimly when it is pinged.
I will go and try it with another PSU now to see if that fixes it.
Phil
|