Posted under » Linux » Arch on 28 October 2024
Unless you using iphone, most probably you are using android.
Before this, I was using Termius to SSH to another linux server, but you can't scp or rsync with an SSH client.
We need to install Termux (terminal emulator) on Android and establish SSH connections between both endpoint.
You can obtain Termux builds from F-Droid. Do not install it from Google Play. But I already installed from Google Play and it seems to work too.
Termux is an Android terminal emulator and Linux environment application that works directly with no rooting or setup required. A minimal base system is installed automatically, additional packages are available using the package manager.
It looks and feels like a windows putty terminal.
Now, let’s execute the update command to ensure that the package lists are up-to-date:
$ pkg update
Afterward, we grant the storage permission to Termux via the termux-setup-storage command:
$ termux-setup-storage
We can install the OpenSSH server on Linux from its official repository:
$ sudo apt install openssh-server
let’s install the SSH server on Android via the pkg command in Termux:
$ pkg install openssh
To install rsync
$ pkg install rsync
You can tell the distro is Arch Linux because it uses the pkg command. Although not all arch like steamOS and garuda uses this.
To find out the version,
$ uname -srm Linux 5.4.242-28575149-abG998BXXSDGXI5 aarch64
You can then do rsync.