WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Problems with SCP and dropbear  (Read 28827 times)

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Problems with SCP and dropbear
« on: March 27, 2013, 04:02:42 PM »
So I got my Pi yesterday, got Core installed, dropbear set up and running, and starting to play with it. I'm not a fan of the debian import script, it seems to be pulling in all sorts of dependencies that I wouldn't need in TC on my laptop (eg, selinux). So I'm trying to set up my build tools (the tc-ext-tools shell scripts) - but I can't seem to use scp to get anything on or off the pi.

From my laptop:
Code: [Select]
tc@box:~/PROJECTS$ scp tc-ext-tools/ tc@10.1.1.6:

Secure login powered by Dropbear SSH server on piCore.
Enter passphrase for key '/home/tc/.ssh/jls.identity':
sh: scp: not found
lost connection

From the pi:
Code: [Select]
tc@box:~$ scp -r tc@10.1.1.2:PROJECTS/tc-ext-tools ./PROJECTS/
/usr/bin/dbclient: No such file or directory

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Problems with SCP and dropbear
« Reply #1 on: March 27, 2013, 04:48:22 PM »
Just to make sure, it's dropbear.tcz not an imported dropbear?

(I don't have a pi, just clarifying)
The only barriers that can stop you are the ones you create yourself.

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: Problems with SCP and dropbear
« Reply #2 on: March 27, 2013, 07:46:44 PM »
Yep, dropbear.tcz.

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: Problems with SCP and dropbear
« Reply #3 on: March 27, 2013, 10:58:10 PM »
Actually, if I'd looked closer at the error messages that posted, I could have solved this quicker. Putting symlinks to dropbearmulti in /usr/bin successfuly worked around the problem. Note that I ALSO needed the extra scp symlink in /usr/bin for scp TO the pi to work.

 I think this should qualify as a bug in the dropbear.tcz package?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Problems with SCP and dropbear
« Reply #4 on: March 28, 2013, 02:36:47 AM »
Note that I ALSO needed the extra scp symlink in /usr/bin for scp TO the pi to work.

 I think this should qualify as a bug in the dropbear.tcz package?
Do you mean on the pi or on the box connected to it?
In latter case, which arch is that?
« Last Edit: March 28, 2013, 03:05:00 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Problems with SCP and dropbear
« Reply #5 on: March 28, 2013, 03:18:55 AM »

 I think this should qualify as a bug in the dropbear.tcz package?

Thanks for reporting. There is a new version available, will update package.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: Problems with SCP and dropbear
« Reply #6 on: March 28, 2013, 11:28:45 AM »
Note that I ALSO needed the extra scp symlink in /usr/bin for scp TO the pi to work.

 I think this should qualify as a bug in the dropbear.tcz package?
Do you mean on the pi or on the box connected to it?
In latter case, which arch is that?
On the Pi, apologies if that wasn't clear.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Problems with SCP and dropbear
« Reply #7 on: March 28, 2013, 12:26:47 PM »
The "ALSO" in caps was what confused me...   ::)
An instance of scp is required to run concurrently on both sides (auto invoked on remote machine).
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: Problems with SCP and dropbear
« Reply #8 on: March 28, 2013, 06:13:53 PM »
The "ALSO" in caps was what confused me...   ::)
An instance of scp is required to run concurrently on both sides (auto invoked on remote machine).
Yeah, but having scp in /usr/local/bin isn't good enough. What it seems like to me, is that the problem when using scp from the pi has something to do with dropbear itself being hardcoded to expect dbclient in /usr/bin, and the problem of using scp to the pi seems like a path issue, like /usr/local/bin isn't listed in where ever the $PATH variable is set when using scp.

At any rate, I have a workaround, and I've shared my experience so smarter people can fix it :)

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: Problems with SCP and dropbear
« Reply #9 on: March 30, 2013, 05:54:09 AM »

 I think this should qualify as a bug in the dropbear.tcz package?

Thanks for reporting. There is a new version available, will update package.

Hi bmarcus

I didn't know that scp was possible using dropbear. When you find the time please update the package.

Steen

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Problems with SCP and dropbear
« Reply #10 on: March 30, 2013, 06:50:12 AM »
I didn't know that scp was possible using dropbear.

Code: [Select]
dropbearmulti
;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

paco

  • Guest
Re: Problems with SCP and dropbear
« Reply #11 on: April 26, 2013, 03:36:02 AM »
Hello all,

after reading this post, I found some websites indicating, that dropbear runs with "sftp-server". There is a "sftp-server.tcz" for x86. Would it be possible to add sftp-server to the RaspPi port?

Thanks,
Patrick

EDIT: I just found that openssh.tcz exists and sftp-server is inside this packet. To use sftp, I just use openssh instead of dropbear.
« Last Edit: April 26, 2013, 04:37:41 AM by paco »