maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   step to step: file transfer between winPC and tablet using SSH (https://talk.maemo.org/showthread.php?t=23932)

bunanson 2008-09-28 14:16

step to step: file transfer between winPC and tablet using SSH
 
step by step: file transfer between winPC and tablet using SSH

WARNING: I know NOTHING about security, if you care about security, you need to check it out yourself before attempting. Again, my only security is my user and password, if you pick something real simple, like rootme, tablet, n800, you may open your whole tablet to the world, like, uh.........flashing/indecent exposure :)

1) set up password for root (Optional step only if you do not know your password for root )
xterm
sudo gainroot
passwd
bunSSH (substitute with your own password and remember it, you need it for the whole installation)

2) install openssh on tablet
App manager>browse installable app>openssh
will install openSSH, openSSH-client, openssh-server
set new root password> bunSSH

3) dl/install WinSCP 4.1.6 http://winscp.net/eng/download.php#download2
click the first choice, installation package.
you need to know your tablet ip address, connection manager>Internet connection>IP address

Winscp installation,
session tablet ip address
user root
password bunSSH

save the installation so you dont have to do it everytime
"....are you sure this is the computer your want to...." yes and save it in cache

done

Now you are presented with a window of the local file and a window of the tablet, txf file by dragging files between windows. Happy winSCP!


Some good links:http://www.internettablettalk.com/fo...ad.php?t=17955, hamachi

If you are using the same drive over and over again, just save the sessions, the next time you log into the sessions, the drives/files are right there.

enjoy,

N8x0/Diablo/MMC boot
770/Chinook/MMC boot
Edit: work for N900 too

if you forget your root password, no sweat, info here, http://talk.maemo.org/showthread.php?t=11047, thread #15

bun

iamthewalrus 2008-09-28 16:09

Re: step to step: file transfer between winPC and tablet using SSH
 
Thanks! I'm a linux convert but this looks useful for the wiki.

bunanson 2008-09-28 16:53

Re: step to step: file transfer between winPC and tablet using SSH
 
As suggested, pasted the wholething to wiki, http://www.internettablettalk.com/wi...itle=Main_Page

bun

qwerty12 2008-09-28 17:16

Re: step to step: file transfer between winPC and tablet using SSH
 
Nice guide, thanks!

A few notes though.

Step 1 is not needed. OpenSSH will set the root password for you during install.

Step 3 is not needed either. "ssh" is a client program and running it on it's own will do nothing. The real openssh server is started automatically while installing openssh and is started automatically everytime the tablet is booted up.

bunanson 2008-09-28 18:53

Re: step to step: file transfer between winPC and tablet using SSH
 
Thanks quwerty12, changed as suggested.

I put step 1) there so that user knows what password they set.
I deleted step 3). Any suggestion or concerns about security? Does having tablet leave on 24/7 as openssh-server compromise security?
or it is there anyway, right?

thanks again,

bun

bunanson 2008-10-03 23:12

Re: step to step: file transfer between winPC and tablet using SSH
 
I usually carry my BT around to txf files between my pc and the tablet. I txf files around 6-8 x a day. I constantly input data to my tablet and dl to pc to IM to my office. I was surprised to find out that the place I worked allow pgm installation (Most admin lock out pgm install on public computers), I installed winSCP and now I am using SSH winSCP to do file txf. What a breeze! For some reason, BT files txf and "shared folders" txf both "sometimes" do NOT work, this is much more reliable than BT/"shared folders".

WARNING: my security, as alluded to on the first post the way I did it, is only my user name and password. When dealing with utmost sensitive info, you need more security. Any suggestions?

bun

Laughing Man 2009-03-10 03:46

Re: step to step: file transfer between winPC and tablet using SSH
 
I know the thread is kinda old. But you could try ssh-agent and setup a key with a passphrase.

bunanson 2009-05-23 15:08

Re: step to step: file transfer between winPC and tablet using SSH
 
lcuk suggested Dokansshfs, will make your tablet show up as a drive on your PC, http://talk.maemo.org/showthread.php...029#post288029

Step by step guide :-)

Go http://dokan-dev.net/en/, and dl dokan library and dokan SSHFS
WARNING per author, better do it in a VirtualMachine if developing programs, may cause BSOD. I got no VM, I just did it on my winPC and has been fine so far.

winPC
1) Unzip dokan library and run the installer
2) unzip dokan sshfs and run the installer
3) reboot window

N8x0
install openssh
AppManager>Browse installable apps>openssh
During the installation of openssh, they will ask for a password, pick something secure and remember it, you will need this password for SSHFS.
reboot N8x0
You need the tablet ip address, Menu>ConnectionManager>Internet connection>IP address

winPC
click DokanSSHFS, it works exactly like openssh
Name: Session name, N800_1
Host: your tablet ip address, something like 192.xxx.x.xxx
User: root
Password: Enter the same password above (the one you setup the tablet)
If you have more than one drive, you would have to specify a drive letter.

Click Connect
You should now see a drive letter in My Computer, use it just like a window drive.

winXP
770/N8x0, yes 770 running 2008HE has been tried and worked.

Related links,

step by step, SSH/SCP without password, http://talk.maemo.org/showthread.php?t=26157
More involved, "...You can go one step further and install sshfs, and then, instead of using the scp command, you can mount remote directories on your tablet as if they were local directories. Then you can copy files using the File Manager..." qole, http://talk.maemo.org/showthread.php?t=26157
Mac, http://talk.maemo.org/showthread.php...029#post288029, thread #2.

enjoy,

Edit: corrected, thanks lcuk.


bun

lcuk 2009-05-23 15:59

Re: step to step: file transfer between winPC and tablet using SSH
 
bun,

excellent, except the password you enter on the Windows side should be the same password as on the tablet side - so the ssh session can decrypt the frames sent from the tablet.

I cannot see a windows based security problem with this, since its the client and not the server.

(thats my understanding anyway, I could be wide of the mark)

GeraldKo 2009-07-10 00:48

Re: step to step: file transfer between winPC and tablet using SSH
 
Thanks, bunanson and everyone else who helped set this out so clearly.

One little new thing that may help someone. I found that my usual WinSCP log-in wouldn't work, and it turned out that my tablet's IP address, which had ended with .100, had been switched (by my ISP, or by the order I started up online sessions on different computers?), to .102. All WinSCP had said was that it couldn't connect. I checked, found the IP address had changed, and just edited my login.

Laughing Man 2009-07-10 03:47

Re: step to step: file transfer between winPC and tablet using SSH
 
Quote:

Originally Posted by GeraldKo (Post 303550)
Thanks, bunanson and everyone else who helped set this out so clearly.

One little new thing that may help someone. I found that my usual WinSCP log-in wouldn't work, and it turned out that my tablet's IP address, which had ended with .100, had been switched (by my ISP, or by the order I started up online sessions on different computers?), to .102. All WinSCP had said was that it couldn't connect. I checked, found the IP address had changed, and just edited my login.

Yeah, that happens to me sometimes. There's two possible ways you could fix that..

1) Have it so the router sets certain computers with certain IPs (not all routers support it..sadly)
2) Have your computers manually do IPs without the router's DHCP (requires manually setting up an IP either on your tablet. Or if you don't want to on your tablet, all the computers besides your tablet).

Thesandlord 2009-07-10 05:31

Re: step to step: file transfer between winPC and tablet using SSH
 
static IP is a lot better. I memorized all the IP addresses of my family's computers, router, xbox, tablet, and printer, which makes life easier than DHCP.

nhanquy 2009-07-10 05:34

Re: step to step: file transfer betw een winPC and tablet using SSH
 
While we are at it: do yourself a favour set up vnc-over-ssh (putty, vncviewer, or tightvnc) with the help of no-ip.com you can use your home computer from work (or any wifi hotspot) and with knots 2 you can listen to your music from your home PC, or you can set up a web server too.

Good instructions for home linux PC here but for windows PC almost same idea applied.

xavi6 2009-08-06 09:47

Re: step to step: file transfer between winPC and tablet using SSH
 
what can i say!! simply you are the best guys :-) still one last Q to help me choose the best way? so which way should i use the first one mentioned by bunanson the ''WinSCP'' way or the lcuk's suggested ''the Dokan ssh'' way? which one is most safe and easy too? help me descide coz i don't wana play around and flip from one 2 another :-)

thanx in advance for your great job guys :-)

lcuk 2009-08-06 09:55

Re: step to step: file transfer between winPC and tablet using SSH
 
Quote:

Originally Posted by xavi6 (Post 309270)
what can i say!! simply you are the best guys :-) still one last Q to help me choose the best way? so which way should i use the first one mentioned by bunanson the ''WinSCP'' way or the lcuk's suggested ''the Dokan ssh'' way? which one is most safe and easy too? help me descide coz i don't wana play around and flip from one 2 another :-)

thanx in advance for your great job guys :-)


I have been a long term user of winscp.
it has features that dokan does not (auto resume, editor selection, ability to open putty session to the machine etc)
it is stable and tested and works really nicely, it is my primary contact with the filesystem on my tablets.

I use it most of the time, but have dokan available for when i need direct access from specific windows apps.

for instance, i have a visual basic app which sets up and configures a development project and it needs to see all the files in the folder - dokan is essential for this and winscp cannot do it.

xavi6 2009-08-06 14:35

Re: step to step: file transfer between winPC and tablet using SSH
 
Quote:

Originally Posted by lcuk (Post 309271)
I have been a long term user of winscp.
it has features that dokan does not (auto resume, editor selection, ability to open putty session to the machine etc)
it is stable and tested and works really nicely, it is my primary contact with the filesystem on my tablets.

I use it most of the time, but have dokan available for when i need direct access from specific windows apps.

for instance, i have a visual basic app which sets up and configures a development project and it needs to see all the files in the folder - dokan is essential for this and winscp cannot do it.

thanx dozen lcuk :) so what i understood Winscp is the prefered option but depending on my needs i may use dokan..aha! got that:) so i may go for Winscp 1st. and see where my needs take me after that ;)
much preciated:)

te37v 2010-09-30 16:57

Re: step to step: file transfer between winPC and tablet using SSH
 
Hey guys,

Is there any way to connect to the pc from the n900? Pretty much transfer files with the n900? For example, if I had my n900 and did not have my pc, but wanted something from my pc.

casper27 2010-09-30 17:04

Re: step to step: file transfer between winPC and tablet using SSH
 
Quote:

Originally Posted by te37v (Post 830218)
Hey guys,

Is there any way to connect to the pc from the n900? Pretty much transfer files with the n900? For example, if I had my n900 and did not have my pc, but wanted something from my pc.

Theres lots of options out there:-
Rdesktop
Ftp
SSH
scp
LogmeIn

And various others that have been utilised. It all depends on how far into it you want to go.

te37v 2010-10-01 06:27

Re: step to step: file transfer between winPC and tablet using SSH
 
i apologize. i have ssh client installed on my n900. perhaps u could provide a link on how to do this? searching for ssh stuff has been a pain so far. took me so long to figure out how to ssh on my computer but now i can connect to the n900 from my pc via winscp

kl2010 2010-10-01 06:49

Re: step to step: file transfer between winPC and tablet using SSH
 
i remoce the post.

lukeman3000 2014-01-10 23:58

Re: step to step: file transfer between winPC and tablet using SSH
 
Quote:

1) set up password for root (Optional step only if you do not know your password for root )
xterm
sudo gainroot
passwd
bunSSH (substitute with your own password and remember it, you need it for the whole installation)
How/where do you do all of this?

endsormeans 2014-01-11 02:59

Re: step to step: file transfer between winPC and tablet using SSH
 
What are you exactly trying to do?

lukeman3000 2014-01-11 03:04

Re: step to step: file transfer between winPC and tablet using SSH
 
Quote:

Originally Posted by endsormeans (Post 1405564)
What are you exactly trying to do?

Well, I'm trying to figure out how to access the file system of my N800 so that I can put some ScummVM games on it.

I've got a 1GB SD card and it holds a few games, but I'd like to put a couple more directly onto the N800. I'm trying to figure out the best way to do this.

I did get SSH to work, but it was not very clear. First, I installed rootsh. Then I ran sudo gainroot. Then I installed openssh, and was able to connect by finding my IP address using the command "ifconfig" in the x terminal along with port 22. I used FileZilla on my Windows PC to connect to my N800.

However, when I tried to connect again, I noticed that I didn't have root access so I couldn't use ifconfig to view my IP address (I forgot what it was). Is there no way to permanently have root access so I don't have to type "sudo gainroot" each time I want to look at my IP address?

Or, is there a better way to transfer files directly onto my N800? Please bear in mind I'm a complete linux/N800 newbie here.. I'm learning a lot of things for the first time.

endsormeans 2014-01-11 03:34

Re: step to step: file transfer between winPC and tablet using SSH
 
Of course..1st things 1st....you are heading a little deeper into the pool compared to the shallow end where you should be. For a windows user...I know that this is like another world in compare.
1- just putting games on an sd card isn't going to work
2- using your n800 browser go to maemo.org...at the top there is a section called downloads in "Downloads" ...a button .."os2008" ...under that is a section for your os..."Games". Those are easy click on the install button....they install. Bam
3- researching the methods of properly installing and implementing game files for scumm ...deal with that last ...
4- if you want to put files onto your 1gb card....there is an easier way...a couple in fact....bluetooth is one. wifi transfer is another...but easiest for you is this:
a- put your sd card 1st into the external slot under the foldout stand
b- open the file manager
c- hopefully the file system shows the external sd card...(if it doesn't pull it out put it in your computer and format it with panasonic sd card formatter)....click and highlight the external sd card...then go to the top left drop down in the file manager window....format the card.
then the card should have no prob with compat.
5- pull out the pc to n800 connector cable you just used to flash with
6- make sure your nokia is on close the file manager...plug in the cable
7- your comp will find 2 areas...one is the sd card..click and open it..drag and drop whatever files/folders from your computer to your sd card...wait for it to finish...close window...ALWAYS MAKE SURE YOU PROPERLY SAFELY REMOVE USB DEVICE BEFORE UNPLUGGING THE CABLE. FORGET AND IT WON"T BE FUN FOR YOUR SD CARD. :)
8- Bob's your uncle :D
9-Remember to please post in the relevant subsection for your device/os/prob .. ...I can't help while you bounce around the forum subsections....it makes it difficult if not impossible for others who would like to reference and find out how a problem was solved if the question is in one forum but the answers are spread throughout many others.

FlashInTheNight86 2014-04-07 02:55

Re: step to step: file transfer between winPC and tablet using SSH
 
Transferring 1GB file took me 35 mins OpenSSH vs WinSCP using scp. Am I doing something wrong, or is SSH slow as a turtle?
Not only was it painfully slow, but it drains my battery fast and of course I can't switch batteries during the process.

endsormeans 2014-04-07 03:12

Re: step to step: file transfer between winPC and tablet using SSH
 
I rarely try transferring files that large ssh-ing.
bluetooth, wifi, usb...alot quicker.

FlashInTheNight86 2014-04-07 03:18

Re: step to step: file transfer between winPC and tablet using SSH
 
Could you please point me where to read about wi-fi transferring without SSH. I had an impression it was only possible using SSH. Tried bluetooth - even slower. .

endsormeans 2014-04-07 04:44

Re: step to step: file transfer between winPC and tablet using SSH
 
Speaking of bluetooth transfer ...I just finished transferring about 800 mb of graphic work from my n800 to my comp....took a few hours...yeah...wifi is quicker...usb quicker still...transfer speed is dependent on many factors....I know that 1 file at 800mb will transfer much faster than 2317 files at 800mb ...for example.

Geez...been doing so long...don't even really think about a step by step.
Hmmmm....Simply put... the point is to enable your nxx0 device to access a specific file folder on your pc.
As far as your pc goes under devices enable wifi or bluetooth or both....make sure your pc is visible for it... for that nxx0....and the same for the nxx0 to see the pc.
once you are able to have both devices see each other ...drag and drop files onto pc folder designated for transfer...(the key point is the specific folder you wish to enable sharing must be enabled to share...ie permission to share).... Then access shared devices on target nxx0 ...and simply move files to a locale in your nxx0 file system.

I know this seems a bit vague in explanation...but explicit directions do vary depending on the specific p.c. o.s. .

pichlo 2014-04-07 11:58

Re: step to step: file transfer between winPC and tablet using SSH
 
Quote:

Originally Posted by FlashInTheNight86 (Post 1420182)
Could you please point me where to read about wi-fi transferring without SSH. I had an impression it was only possible using SSH. Tried bluetooth - even slower. .

There is an experimental Samba server available for the N900 in extras-devel. I've never had much luck with it myself, but then I've never tried hard enough since SSH/SCP suits all my needs just fine.

kureyon 2014-04-13 00:36

Re: step to step: file transfer between winPC and tablet using SSH
 
Quote:

Originally Posted by FlashInTheNight86 (Post 1420178)
Transferring 1GB file took me 35 mins

Your speed will probably depend on whether there are any other computers using your wifi network. I can get speeds of up to about 1MB/s when I transfer a file from a wired computer to my N900 (the N900 is the only thing using the wlan). Which is pretty respectable considering that when using samba or sftp on my Galaxy Note 2, I cannot get more than 400KB/s.

FlashInTheNight86 2014-04-13 18:49

Re: step to step: file transfer between winPC and tablet using SSH
 
kureyon, still much slower than USB-cable.


All times are GMT. The time now is 20:36.

vBulletin® Version 3.8.8