maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   how can you get "scp" working? (ssh) (https://talk.maemo.org/showthread.php?t=920)

meshsmooth 2006-01-01 14:01

how can you get "scp" working? (ssh)
 
i have installed the 3 dropbear packages for ssh and still cant find the scp command. I have searched the nokia's file system and not found it. I used the command
$ find *|grep scp
I didnt find it.
so what do i need to install to get scp installed?

aflegg 2006-01-01 14:46

In an xterm, try:

Code:

find / -name scp -type f 2>/dev/null
...and...

Code:

ls -l /var/lib/install/usr/bin/s*
It should be in /var/lib/install/usr/bin/scp.

meshsmooth 2006-01-02 13:16

ok i dont have it installed in those locations, but have installed the 3 packages. i am at a loss

[edit]
I installed the latest packages and it turned up

woot!

henry 2006-01-02 13:30

I can confirm that scp is indeed located at /var/lib/install/usr/bin/scp.

Have you tried reinstalling the dropbear-client package? scp is included in there.

pdafan 2006-01-04 02:08

How do I get the scp working? On this site there are some directions on how to
actually use scp:

http://maemo.org/pipermail/maemo-use...er/000293.html

That's a fine example, but when I try it out I get this error:
(copying from my linux box to the 770)

ari/junk> scp test.txt user@192.168.0.4:/media/mmc1
ssh: connect to host 192.168.0.4 port 22: Connection refused
lost connection

Ok, so I look here and find out I need to run dbclient first (which I have installed):

https://maemo.org/maemowiki/InstallSsh

That's also fine, but when I try to run dbclient (on the 770) I get:

/var/lib/install/usr/bin $ ./dbclient
Dropbear client v0.46
Usage: ./dbclient [options] [user@]host
Options are:
-p <remoteport>
-t Allocate a pty
-T Don't allocate a pty
-i <identityfile> (multiple allowed)
-L <listenport:remotehost:remoteport> Local port forwarding
-R <listenport:remotehost:remoteport> Remote port forwarding
-l <username>

What's the correct way to set up a session for scp? I already have the basic ssh
setup working well.

Thanks,

- Ari

pdafan 2006-01-04 02:30

Never mind
 
I guess I had to specify the port on the remote machine (the 770):

ari/junk> scp -P 2222 test.txt user@192.168.0.4:/media/mmc1
Enter passphrase for key '/home/ari/.ssh/id_rsa':
test.txt

That worked! :D

incarnis 2006-01-06 11:17

SCP as root
 
I've only been able to scp as root on the standard port (22). Not really a problem though..end up dumping stuff into root's home and moving it.

An important point to note about scp - if you follow the link to the dropbear client from maemo.org, there are several versions in there. ONLY THE LATEST ONE INCLUDES SCP!!!

putkowski 2006-01-12 17:49

I haven't tried scp (by typing) on the 770. I use it from ssh on another box (through the dropbear-server on the 770.)

This requires the installation of dropbear-client because that's the package that has the scp binary.


All times are GMT. The time now is 16:30.

vBulletin® Version 3.8.8