12-01-2021, 01:43 AM
【On your phone】
Then check your IP address (should be 192.168.x.x, 172.16.x.x, or 10.x.x.x, replace "x" with whatever shows up).
【On your PC】
ssh mobian@(IP address of your phone)
Then to skip the password (optional step, but very convenient if you frequently login):
【On your PC】
(Copy the output, if there is none or an error message, generate your SSH key.)
【On your phone】
(Paste the output you copied and save the file.)
Code:
sudo apt install ssh
sudo systemctl enable ssh
Then check your IP address (should be 192.168.x.x, 172.16.x.x, or 10.x.x.x, replace "x" with whatever shows up).
Code:
ip a
【On your PC】
ssh mobian@(IP address of your phone)
Then to skip the password (optional step, but very convenient if you frequently login):
【On your PC】
Code:
cat .ssh/id_rsa.pub
【On your phone】
Code:
mkdir .ssh # If not done already
nano .ssh/authorized_keys # or vi .ssh/authorized_keys, or vim .ssh/authorized_keys, or mcedit .ssh/authorized_keys etc.
母語は日本語ですが、英語も喋れます(ry