Discussion:
[Gumstix-users] Is anyone else having this problem using scp and ssh on the gumstix?
David I S Mandala
2005-05-11 05:48:33 UTC
Permalink
I can ssh into the gumstix with no problems and I can scp files into the
gumstix again with no problems. But when I'm on the gumstix and I try to
scp a file out or ssh out I get the following errors:

# scp test.txt 192.168.254.200:.
/usr/bin/dbclient: No such file or directory
lost connection

# ssh david192.168.254.200

Host '192.168.254.200' is not in the trusted hosts file.
(fingerprint sha1
40:00:d8:a7:a3:13:55:44:a2:eb:5f:19:0e:0f:29:fc:8a:6b:42:ca)
Do you want to continue connecting? (y/n)
yes
ssh: connection to ***@192.168.254.200:22 exited: No auth methods could
be used.
#


Is anyone else having these problems? Any suggestions what to do to fix
this?

TIA
--
David Mandala <davidm at them dot com>
www.them.com/~davidm Public Key id: 45B2D952
Murphy TX, 75094 214.774.2569 HO 972.693.4007 C
Philip Trickett (List)
2005-05-11 08:52:25 UTC
Permalink
Post by David I S Mandala
Is anyone else having these problems? Any suggestions what to do to fix
this?
TIA
Yeah, I had the same problem.

dbclient is the dropbear ssh client program. It needs to be created as a
link to the main dropbear binary. (I don't know why this does not happen
in the buildroot)

i did the following (on the gumstix):
ln -s /usr/sbin/dropbear /usr/bin/dbclient

After that it worked fine.

Still could not get it to do key based logins though...


Phil
David I S Mandala
2005-05-11 14:36:19 UTC
Permalink
Phil,

Thanks that helped, I put the symlink in. That changed the symptoms but
still did not resolve the problem completely.

Now when I scp the test file I get:

# scp wireless ***@192.168.254.200:.
WARNING: Ignoring unknown argument '-x'
WARNING: Ignoring unknown argument '-oForwardAgent no'
WARNING: Ignoring unknown argument '-oClearAllForwardings yes'
/usr/bin/dbclient: connection to ***@192.168.254.200:22 exited: No
auth methods could be used.
lost connection
#

and when I attempt to ssh I get:

# ssh ***@192.168.254.200
ssh: connection to ***@192.168.254.200:22 exited: No auth methods
could be used.

I can still ssh and scp inbound however.

Anyone else have any ideas, suggestions?

TIA

David
Post by Philip Trickett (List)
Post by David I S Mandala
Is anyone else having these problems? Any suggestions what to do to fix
this?
TIA
Yeah, I had the same problem.
dbclient is the dropbear ssh client program. It needs to be created as a
link to the main dropbear binary. (I don't know why this does not happen
in the buildroot)
ln -s /usr/sbin/dropbear /usr/bin/dbclient
After that it worked fine.
Still could not get it to do key based logins though...
Phil
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
gumstix-users mailing list
https://lists.sourceforge.net/lists/listinfo/gumstix-users
--
David Mandala <davidm at them dot com>
www.them.com/~davidm Public Key id: 45B2D952
Murphy TX, 75094 214.774.2569 HO 972.693.4007 C
Philip Trickett (List)
2005-05-11 14:57:46 UTC
Permalink
Hi David.

Are you trying to use password or key based authentication?

What do the logs on your server machine say when the scp or the ssh from
the gumstix fails?

Phil
David I S Mandala
2005-05-11 16:04:01 UTC
Permalink
Phil,

I did a test with both password and a dsa key. I can ssh into the server
from any of my other machines so the problem is not at the server end.

The result on the gumstix is consistent.

# ssh ***@192.168.254.200
ssh: connection to ***@192.168.254.200:22 exited: No auth methods
could be used.

Log output below:

Password.

Below is everything in the log once I restarted sshd with debugging set
on.

May 11 10:39:25 dmdesk sshd[26501]: debug3: recv_rexec_state: entering
fd = 5
May 11 10:39:25 dmdesk sshd[26501]: debug3: ssh_msg_recv entering
May 11 10:39:25 dmdesk sshd[26501]: debug3: recv_rexec_state: done
May 11 10:39:25 dmdesk sshd[26501]: debug2: parse_server_config: config
rexec len 386
May 11 10:39:25 dmdesk sshd[26501]: debug1: sshd version OpenSSH_3.9p1
May 11 10:39:25 dmdesk sshd[26501]: debug1: private host key: #0 type 0
RSA1
May 11 10:39:25 dmdesk sshd[26501]: debug3: Not a RSA1 key
file /etc/ssh/ssh_host_rsa_key.
May 11 10:39:25 dmdesk sshd[26501]: debug1: read PEM private key done:
type RSA
May 11 10:39:25 dmdesk sshd[26501]: debug1: private host key: #1 type 1
RSA
May 11 10:39:25 dmdesk sshd[26501]: debug3: Not a RSA1 key
file /etc/ssh/ssh_host_dsa_key.
May 11 10:39:25 dmdesk sshd[26501]: debug1: read PEM private key done:
type DSA
May 11 10:39:25 dmdesk sshd[26501]: debug1: private host key: #2 type 2
DSA
May 11 10:39:25 dmdesk sshd[26501]: debug1: inetd sockets after dupping:
3, 3
May 11 10:39:25 dmdesk sshd[26501]: Connection
from ::ffff:192.168.254.101 port 4506
May 11 10:39:25 dmdesk sshd[26501]: debug1: Client protocol version 2.0;
client software version dropbear_0.44
May 11 10:39:25 dmdesk sshd[26501]: debug1: no match: dropbear_0.44
May 11 10:39:25 dmdesk sshd[26501]: debug1: Enabling compatibility mode
for protocol 2.0
May 11 10:39:25 dmdesk sshd[26501]: debug1: Local version string
SSH-1.99-OpenSSH_3.9p1
May 11 10:39:25 dmdesk sshd[26501]: debug2: fd 3 setting O_NONBLOCK
May 11 10:39:25 dmdesk sshd[26501]: debug2: Network child is on pid
26524
May 11 10:39:25 dmdesk sshd[26501]: debug3: preauth child monitor
started
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_request_receive entering
May 11 10:39:25 dmdesk sshd[26501]: debug3: monitor_read: checking
request 4
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_answer_sign
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_answer_sign: signature
0x80a2b80(143)
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_request_send entering:
type 5
May 11 10:39:25 dmdesk sshd[26501]: debug2: monitor_read: 4 used once,
disabling now
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_request_receive entering
May 11 10:39:25 dmdesk sshd[26501]: debug3: monitor_read: checking
request 6
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_answer_pwnamallow
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_answer_pwnamallow:
sending MONITOR_ANS_PWNAM: 1
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_request_send entering:
type 7
May 11 10:39:25 dmdesk sshd[26501]: debug2: monitor_read: 6 used once,
disabling now
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_request_receive entering
May 11 10:39:25 dmdesk sshd[26501]: debug3: monitor_read: checking
request 45
May 11 10:39:25 dmdesk sshd[26501]: debug1: PAM: initializing for
"david"
May 11 10:39:25 dmdesk sshd[26501]: debug3: Normalising mapped IPv4 in
IPv6 address
May 11 10:39:25 dmdesk sshd[26501]: debug3: Trying to reverse map
address 192.168.254.101.
May 11 10:39:25 dmdesk sshd[26501]: debug1: PAM: setting PAM_RHOST to
"192.168.254.101"
May 11 10:39:25 dmdesk sshd[26501]: debug1: PAM: setting PAM_TTY to
"ssh"
May 11 10:39:25 dmdesk sshd[26501]: debug2: monitor_read: 45 used once,
disabling now
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_request_receive entering
May 11 10:39:25 dmdesk sshd[26501]: debug3: monitor_read: checking
request 3
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_answer_authserv:
service=ssh-connection, style=
May 11 10:39:25 dmdesk sshd[26501]: debug2: monitor_read: 3 used once,
disabling now
May 11 10:39:25 dmdesk sshd[26501]: debug3: mm_request_receive entering
May 11 10:39:25 dmdesk sshd[26501]: debug1: do_cleanup
May 11 10:39:25 dmdesk sshd[26501]: debug1: PAM: cleanup
May 11 10:39:25 dmdesk sshd[26501]: debug3: PAM: sshpam_thread_cleanup
entering
May 11 10:40:47 dmdesk sshd[26790]: Server listening on :: port 22.

key

May 11 10:50:46 dmdesk sshd[28764]: debug3: recv_rexec_state: entering
fd = 5
May 11 10:50:46 dmdesk sshd[28764]: debug3: ssh_msg_recv entering
May 11 10:50:46 dmdesk sshd[28764]: debug3: recv_rexec_state: done
May 11 10:50:46 dmdesk sshd[28764]: debug2: parse_server_config: config
rexec len 386
May 11 10:50:46 dmdesk sshd[28764]: debug1: sshd version OpenSSH_3.9p1
May 11 10:50:46 dmdesk sshd[28764]: debug1: private host key: #0 type 0
RSA1
May 11 10:50:46 dmdesk sshd[28764]: debug3: Not a RSA1 key
file /etc/ssh/ssh_host_rsa_key.
May 11 10:50:46 dmdesk sshd[28764]: debug1: read PEM private key done:
type RSA
May 11 10:50:46 dmdesk sshd[28764]: debug1: private host key: #1 type 1
RSA
May 11 10:50:46 dmdesk sshd[28764]: debug3: Not a RSA1 key
file /etc/ssh/ssh_host_dsa_key.
May 11 10:50:46 dmdesk sshd[28764]: debug1: read PEM private key done:
type DSA
May 11 10:50:46 dmdesk sshd[28764]: debug1: private host key: #2 type 2
DSA
May 11 10:50:46 dmdesk sshd[28764]: debug1: inetd sockets after dupping:
3, 3
May 11 10:50:46 dmdesk sshd[28764]: Connection
from ::ffff:192.168.254.101 port 4241
May 11 10:50:46 dmdesk sshd[28764]: debug1: Client protocol version 2.0;
client software version dropbear_0.44
May 11 10:50:46 dmdesk sshd[28764]: debug1: no match: dropbear_0.44
May 11 10:50:46 dmdesk sshd[28764]: debug1: Enabling compatibility mode
for protocol 2.0
May 11 10:50:46 dmdesk sshd[28764]: debug1: Local version string
SSH-1.99-OpenSSH_3.9p1
May 11 10:50:46 dmdesk sshd[28764]: debug2: fd 3 setting O_NONBLOCK
May 11 10:50:46 dmdesk sshd[28764]: debug2: Network child is on pid
28783
May 11 10:50:46 dmdesk sshd[28764]: debug3: preauth child monitor
started
May 11 10:50:46 dmdesk sshd[28764]: debug3: mm_request_receive entering
May 11 10:50:47 dmdesk sshd[28764]: debug3: monitor_read: checking
request 4
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_answer_sign
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_answer_sign: signature
0x80a2b30(143)
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_request_send entering:
type 5
May 11 10:50:47 dmdesk sshd[28764]: debug2: monitor_read: 4 used once,
disabling now
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_request_receive entering
May 11 10:50:47 dmdesk sshd[28764]: debug3: monitor_read: checking
request 6
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_answer_pwnamallow
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_answer_pwnamallow:
sending MONITOR_ANS_PWNAM: 1
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_request_send entering:
type 7
May 11 10:50:47 dmdesk sshd[28764]: debug2: monitor_read: 6 used once,
disabling now
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_request_receive entering
May 11 10:50:47 dmdesk sshd[28764]: debug3: monitor_read: checking
request 45
May 11 10:50:47 dmdesk sshd[28764]: debug1: PAM: initializing for
"david"
May 11 10:50:47 dmdesk sshd[28764]: debug3: Normalising mapped IPv4 in
IPv6 address
May 11 10:50:47 dmdesk sshd[28764]: debug3: Trying to reverse map
address 192.168.254.101.
May 11 10:50:47 dmdesk sshd[28764]: debug1: PAM: setting PAM_RHOST to
"192.168.254.101"
May 11 10:50:47 dmdesk sshd[28764]: debug1: PAM: setting PAM_TTY to
"ssh"
May 11 10:50:47 dmdesk sshd[28764]: debug2: monitor_read: 45 used once,
disabling now
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_request_receive entering
May 11 10:50:47 dmdesk sshd[28764]: debug3: monitor_read: checking
request 3
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_answer_authserv:
service=ssh-connection, style=
May 11 10:50:47 dmdesk sshd[28764]: debug2: monitor_read: 3 used once,
disabling now
May 11 10:50:47 dmdesk sshd[28764]: debug3: mm_request_receive entering
May 11 10:50:47 dmdesk sshd[28764]: debug1: do_cleanup
May 11 10:50:47 dmdesk sshd[28764]: debug1: PAM: cleanup
May 11 10:50:47 dmdesk sshd[28764]: debug3: PAM: sshpam_thread_cleanup
entering
May 11 10:51:07 dmdesk sshd[28869]: Server listening on :: port 22.
Post by Philip Trickett (List)
Hi David.
Are you trying to use password or key based authentication?
What do the logs on your server machine say when the scp or the ssh from
the gumstix fails?
Phil
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
gumstix-users mailing list
https://lists.sourceforge.net/lists/listinfo/gumstix-users
--
David Mandala <davidm at them dot com>
www.them.com/~davidm Public Key id: 45B2D952
Murphy TX, 75094 214.774.2569 HO 972.693.4007 C
Loading...