4 ms·
The OP talks about transferring from a PC to a phone (and vice versa). I have no idea how to use scp on my phone or how to move a file from my PC to my phone wi
by GMoromisato 3y ago
The OP talks about transferring from a PC to a phone (and vice versa). I have no idea how to use scp on my phone or how to move a file from my PC to my phone with scp.
Honestly, if you can teach me how to do that in less than a minute, I would (no sarcasm) really appreciate it.
- advael 3y agoThat's fair, the duopoly on the mobile platform is such that you are only allowed to do what google or apple deigns to allow, so I suppose one must take it up with them
- careful_soace 3y agoOnce I found Termux i use SSHelper less often, using scp and later rsync on either. But I'm on Android... SSHelper will tell give you a GUI where you configure optional password and get the IP and port. Then scp is -P<port> <user>@<IP>:<path> scp -P22222 myfile anyuser@192.168.1.10:/data/user/0/com.arachnoid.sshelper/SDCard/. where the only trick part is how Android managed storage, but it's just more letters (/data/user/0/com.arachnoid.sshelper/SDCard/<path>). Once I found Termux I embraced it since it's a nifty linux thing straight on my phone with it's own configurable sshd and it's exactly the same as above except with a different path and lots more options.
- yjftsjthsd-h 3y agoAndroid: install termux, `pkg install openssh`, and preferably run `termux-setup-storage` to give it access to storage folders. iOS: I think https://ish.app/ https://ish.app/ ? (If you're in the ~1% of smart phones not on Android or iOS, either this is trivial (postmarketos rocks) or you're on your own)
- PeterisP 3y agoIt also requires running a ssh server on the PC, and the even harder issue of having an externally accessible IP address that will allow ssh connections to the PC from the internet - I can do the former but I'm not entirely sure if the latter is even possible with my ISP.
- yjftsjthsd-h 3y agoI was responding to a comment that said, > I have no idea how to use scp on my phone or how to move a file from my PC to my phone with scp. so I'm comfortable assuming that they have an sshd and can reach it (though I grant, having an IP line-of-sight can be annoying).