LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 08-03-2014, 03:35 AM   #1
dk201
LQ Newbie
 
Registered: Aug 2014
Location: Minnesota
Distribution: Debian
Posts: 3

Rep: Reputation: Disabled
upload to debian from android phone with JuiceSSH


i installed a ssh server on my home Debian computer and JuiceSSH on my android phone. i'd like to be able to upload from my phone to my computer (my own 'cloud' for picture storage). can anyone explain how? meanwhile i'll read up on ssh
 
Old 08-03-2014, 08:31 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
You cannot transfer files via ssh. That is done via scp. The syntax is explained in the linked Wikipedia article.

I looked at the Juice website and could find no mention of scp. That is not by any means conclusive, though. The capability may be there, just not mentioned on the Google Play page. I have Juice SSH, but I can't test it right now.

An alternative would be the ES File Explorer for Android, which is capable of browsing to network shares. It works very nicely.
 
1 members found this post helpful.
Old 08-03-2014, 08:34 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,691

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Welcome to linuxquestions.

Just starting to play with this but as far as I know juicessh is just a ssh client, andftp is a sftp client. You could also setup your own cloud server (owncloud.org).
 
1 members found this post helpful.
Old 08-05-2014, 09:17 AM   #4
dk201
LQ Newbie
 
Registered: Aug 2014
Location: Minnesota
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: Disabled
I just cleaned up an old 486 and installed Debian. Haven't used linux because I couldn't find a distro I liked and I always just ended up downloading tons of packages. This time I decided not to go package install crazy and just play with what Debian came with (play w/Emacs, console commands, grub loader, defaults, read /var/log and /doc directories, etc.) and it's more fun. I'm proud of myself for now always wanting to do things in console rather than GUI. Command line actually seems faster!

I was just playing around with connectivity between my Android and Debian. Thanks both of you for the advice. I'm still thinking about owncloud, I downloaded the package but haven't installed it yet.

I didn't see a Debian package at 1st just a tar archive and I found the following when googling owncloud right now. I'm just including it in this email so I can come back to it when I'm using my Debian machine.

RE: ES File Explorer - I will check it out but this project I'm looking for an internet (away) connection not home network.

Quote:
echo 'deb http://download.opensuse.org/reposit...op/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud-client.list
apt-get update
apt-get install owncloud-client

https://software.opensuse.org/download/package?project=isvwnCloud:desktop&package=owncloud-client
Hah there's a in the link!

Last edited by dk201; 08-05-2014 at 10:09 AM. Reason: bbcode added smile
 
Old 08-05-2014, 10:30 AM   #5
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
I second ES File Explorer

I also use AndFTP and transfer using sftp


Since I have Custom Rom ( CyanogenMod ), I am able to run sshd or/and use rsync scp and so on ...
But it is often much easier to use AndFTP to move files
I use ES File Explorer for media, music works well when I connect via OpenVPN.. Video not so good if 'on the road' as my Upload speed isn't great

Edit:
I've also had success with sshfs , but again ESFE and AndFTP are just easy to use

Last edited by Firerat; 08-05-2014 at 10:32 AM.
 
1 members found this post helpful.
Old 08-07-2014, 08:38 PM   #6
dk201
LQ Newbie
 
Registered: Aug 2014
Location: Minnesota
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: Disabled
ES File Explorer is super nice. I can connected on my LAN w/my android to my debian computer. I can't figure out how to connect from my android to my debian computer over the internet though My computer is behind a router. Do I have to setup NAT w/my router?

EDIT: yes

Would changing my FTP port on my computer and w/the port forwarding on the router to something besides 21 be a smart security choice? Unfortunately I just read "why changing your FTP port is a bad idea".

Last edited by dk201; 08-07-2014 at 08:51 PM. Reason: answer
 
Old 08-08-2014, 04:19 AM   #7
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
look for OpenVPN connect in play store

https://play.google.com/store/apps/d....openvpn&hl=en

setup an OpenVPN server on your debian ( pretty straight froward )
don't forget to have your router forward the OpenVPN port to your Debian box

you can then point ES Fileexplorer to the VPN address,, e.g. 10.9.8.1 ( you set the server in openVPN config )


https://wiki.debian.org/OpenVPN


Note: OpenVPN is not the only VPN solution
But I do know it works Android --> Debian ( I use it )

there are limits, for example the Android app can not 'do' TAP Bridge
But if rooted their is a thirdParty App,

https://play.google.com/store/apps/d...nstaller&hl=en
for the 'main' install
and
https://play.google.com/store/apps/d....openvpn&hl=en
for settings

Not as easy to setup but does support TAP bridge

You will probably find you only need TUN, so try first option
 
Old 08-08-2014, 05:33 AM   #8
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
just a couple of notes

you will need some kind of dynamic dns service such as http://www.noip.com/

most if not all modern routers will let you setup at least one ddns service

also, the easiest way to configure the Android OpenVPN connect is with a single .ovpn file

this crude script will 'generate' them for you ( but I think there is an option to create them in easy-rsa )

Code:
#!/bin/bash

Key_Dir="/etc/openvpn/easy-rsa/keys"
Sample_config="/usr/share/doc/openvpn/examples/sample-config-files/client.conf"
for Device in $@;do
    grep -vE "^ca|^key|^cert"  "${Sample_config}" > ${Device}.ovpn 
    cat <<< "<ca>" >> ${Device}.ovpn 
    cat < "${Key_Dir}/ca.crt" >> ${Device}.ovpn 
    cat <<< "</ca>" >> ${Device}.ovpn 
    cat <<< "<cert>" >> ${Device}.ovpn 
    sed -n '/-----BEGIN CERTIFICATE----/,/-----END CERTIFICATE----/p' "${Key_Dir}/${Device}.crt" >> ${Device}.ovpn 
    cat <<< "</cert>" >> ${Device}.ovpn 
    cat <<< "<key>" >> ${Device}.ovpn 
    cat < "${Key_Dir}/${Device}.key" >> ${Device}.ovpn 
    cat <<< "</key>" >> ${Device}.ovpn
done
Code:
CrudeScript.sh MyPhone MyTablet MyLaptop
edit each .ovpn to suit or copy the sample.conf and edit to suit, updating the Sample_config VAR

when building keys for your devices ( phone, tablet , laptop , work pc ... )
use build-key-pass ( instead of build-key detailed in the debian wiki )
it will prompt for password, you will need that password to use the key

you may also be interested in ConnectBot ( I use a fork, VX ConnectBot )

Last edited by Firerat; 08-08-2014 at 05:38 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Static IP on android phone WhiteR4VeN Linux - Mobile 7 10-14-2013 03:20 PM
View my Debian desktop via android phone?? prickee Linux - Mobile 3 01-26-2012 05:16 PM
Debian on an Android phone: newbie questions rob_L Linux - Mobile 7 08-29-2011 09:06 AM
[SOLVED] Android Phone snjksh Linux - Mobile 1 05-04-2011 11:44 AM
Upload music, photos etc... iDen i570 phone via usb cable? okos Linux - Software 0 04-19-2008 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 06:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration