Transfer files from Android to PC via SSHMay 16th, 2020
I found many articles on how to transfer files from PC to android with ssh. But the articles on getting files off were challenging. What I really wanted to do is be able to clear out my camera roll to my PC which means transferring and deleting.
I used an Android app SimpleSSHD on my tablet. As you can see, it is trivial to get the PC to scp files to Android. But the inverse gives you the error:
With a bit of playing around I realized I was able to execute commands via ssh and
cat so happened to be one of those commands.
ssh androidIP -p androidPort 'cat /path/to/file/on/android' > /path/to/file/on/PC
I hope this hack gives you a workable solution. Have a better way? Let me know in the comment section below.
I am TSLA Long. Model 3 Owner. Brother of a Model 3 owner. Son of a Model S owner. I have reservations for Slate Roof and Cybertruck. I am a Tesla speculator and fanboy. I am not a financial advisor. Investing in anything comes with inherent risk.
I (Pseudonym: Oliver Klozov) support the following on Patreon and you should too:
The following YouTubers help support my TSLA long bias through stock price volatility. +Great insights.
- The Limiting Factor
- Now You Know
- Dave Lee on Investing
- Financial Education
- EV Stock Channel