The IP address can be found from the output of the command ip addr. The login name can be obtained with the whoami command – it is of the format u0_aNNN. In order to login, we need the login name and IP address of the Android device on the home network. Then, start the SSH daemon on the phone with the command sshd. This will be the log in password when we use the services offered by OpenSSH. In Termux, configure the password using the command passwd. Typing Linux commands on the phone could be a nightmare and we would like to SSH in for any heavy command-line work. Installing Termux is straightforward – it can be easily found on Google Play.Īfter launching Termux, install OpenSSH using the instructions here. Installing Termux and OpenSSHįirst, connect the phone to the home WiFi network. The idea of using SFTP for file transfer came about when I read that it was possible to install OpenSSH in Termux. The app brings the power of the Linux command line to Android without requiring any rooting. I discovered Termux, a terminal emulator for Android, only very recently. ![]() Through an SD card: For most phones this requires powering down the device and physically opening it to extract the SD card, mounting the SD card on the laptop/desktop, etc.Some of us may have qualms about transferring personal data out into the cloud, even temporarily. Besides, it is rather inelegant to have to transfer the data out into the cloud only to have it transferred back again when both devices are physically in the owner’s possession. Again, this becomes cumbersome when transfer volumes are large and the cloud storage service has a capacity limit. One simply uploads the file onto the cloud storage and downloads it onto the other device. Through an intermediate cloud storage service: This is quick and easy and works for small files.I remember trying to install drivers on my laptop/desktop but it did not work as well. Mounting as USB mass storage/using MTP mode: I used this for some older phones, but support seem to be hit-and-miss for newer phones and kernel versions.This is not an ideal method for transfer volumes of a few GBs. Laptops almost always come with Bluetooth built in but desktops may not, and to use Bluetooth on desktops involve the complication of installing drivers, configuration etc. In my experience, a small file of less than 100MB size can take up to minutes to transfer. There are various way to do so, with their pros and cons: ![]() For me, it is usually for backup purposes or simply because it is easier to work on files on a desktop proper, e.g. There are times when we want to transfer files between our Linux laptops/desktops at home and our phones for various reasons.
0 Comments
Leave a Reply. |