Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

If I were connected by wifi in my network, there isn't any problem because with AirDroid I can access the sdcard files using the browser.

However when I am out, how can I transfer a file from my phone to my PC? I can access my PC using SSH, but then from the PC I can't access the phone for get file using SCP.

I guess the question is: Is there any app that allow do such action? I think the only possible thing is install a SSH server in the phone, isn't it?

share|improve this question
    
Do you mean that you're using the phone and trying to put something on your PC, or are you on a third machine (like a work PC)? Where would you have been running the SSH command from? –  cpast Dec 31 '12 at 17:21
    
The SSH client you're using on the phone may have an associated SCP or SFTP client. If it doesn't, there are others that do. Android Enthusiasts would be the right place to ask about those. –  Gilles Dec 31 '12 at 21:18
add comment

2 Answers

This is not quite a solution to your problem but it may be a useful alternative: look into Dropbox; you can install it on linux as well as Android (and Windows, OSX, IOS, etc). It involves a sort of cloud share, so if you put a file in the box, you can now access it on any other device using that account:

https://www.dropbox.com/

I'm sure there are others services like this but I'm happy to recommend that one, it's simple, it works, it's free. If you run a firewall on your PC you'll have to open a port for it, that's in the FAQ I think.

An advantage of that cloud server kind of thing is that you don't have to have all the devices on at the same time; you can put something in the box on one computer, turn it off, then turn on another computer and access it.

share|improve this answer
    
I don't like cloud services. –  yzT Dec 31 '12 at 19:11
    
I honestly didn't either until I gave dropbox a try; they don't actually call it "cloud". If it's a security issue, you could always splurge on a small VPS slice somewhere and apply the same principle. Or just use your own encryption. –  TAFKA 'goldilocks' Dec 31 '12 at 19:24
add comment

You can scp from phone to PC by entering the following command on the phone:

scp /path/to/file/on/phone user@pc:/path/to/file/on/pc

scp works both ways.

EDIT: You could also try an SFTP client like AndFTP (the free version).

share|improve this answer
1  
Using scp would require you log in from the phone first. I think what yzT means is that if you are using your PC and you want to access the file system on the phone without physically accessing the phone to initiate the connection, then the phone must be running a server too. –  TAFKA 'goldilocks' Dec 31 '12 at 17:04
    
I thought he was referring to starting out on his phone, trying to transfer to PC. –  cpast Dec 31 '12 at 17:19
    
How you use scp on the phone? At least using terminal emulator it doesn't work. –  yzT Dec 31 '12 at 19:11
1  
@yzT You need an android ssh client that supports scp/sftp. The one I use doesn't, but a quick google implies there are ones that do. –  TAFKA 'goldilocks' Dec 31 '12 at 19:23
    
I use ConnectBot. Any suggestion? –  yzT Dec 31 '12 at 19:35
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.