Android w/LAN/hosts/ssh/rsync?
How would I setup an (rooted) Android PC to use on my LAN, including installing an /etc/hosts (or equivalent) on it and SSH keys so I can rsync user data to it?
|
I don't know the answer. Mainly because I have no idea which device is it, what OS is running now on it. How can you connect it to your LAN? What do you mean by your LAN at all?
Do you have a connection problem or ssh related issue, or rsync or ???? |
Stock Android 8, soon to be updated to 9 or a custom ROM fork of Android 11, and an Android 11 or 12 devices later...
|
Android w/LAN/hosts/ssh/rsync?
SimpleSSHD for Android:
https://play.google.com/store/apps/d...hd&hl=en&gl=US |
Quote:
|
Android w/LAN/hosts/ssh/rsync?
|
Quote:
|
Android w/LAN/hosts/ssh/rsync?
I'm confused.
|
If I SSH/rsync on Android, I'll be typing in Android (said this already) shell and SSH to desktop/server or rsync, in Android shell, files from desktop/server to Android; stated don't need SSHD on Android. I t'd be like below.
Code:
user@android~# ssh user@desktop |
Android w/LAN/hosts/ssh/rsync?
Well Android doesn't follow the FHS. But on my phone, the hosts file is /etc/hosts. You could look under /system/etc/hosts perhaps?
Which direction are you trying to copy files? To Android or from Android? And do you want to use the Android shell or not? |
Quote:
Quote:
However, apparently the Android terminal I used installs rsync in an unprivileged user's chroot, but root owns SD card and can't use that rsync (at least without a lot of unknown configuration.) Android is a mess! I might have to end up doing what you linked even though the command-line is a bit more complicated. |
there are a lot of ready-made android apps to do that, do not need to implement anything. I don't understand what is it all about?
|
Quote:
I may end up doing what rkelsen linked, but that was about copying it from Android to destkop/server, opposite of what I wanted to do. Despite all the 'apps' you didn't describe, sometimes command-line is nicer. |
If you have not found the user home directory yet, according to this site, https://www.thesecmaster.com/explore...rchy-in-depth/ it is in /data.
This link gives a few ways to edit the /etc/hosts file; https://www.modmy.com/how-modify-hos...android-device |
Quote:
Quote:
|
All times are GMT -5. The time now is 03:45 PM. |