-
Setup: Network: Don't know is it feasible with NoRoot Android 10. Desktop
Termux:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Termux doesn't set a password by default. The password is only used for remote authentication, not inside the Termux environment itself. Alternatively you can use key based authentication and append the public key of your key pair to the Something along these lines. # Any name after the "Host" keyword becomes a valid alias for this connection
Host Termux Phone termux phone
# Termux disregards the supplied User since its effectively a single-user system
User ssh
# The IP or local domain of your phone
Hostname 192.168.111.3
# Port's 1 to 1024 are "privleged" on Android, so Termux's sshd defaults to Port 8022
Port 8022
# The location of your private key
IdentityFile ${HOME}/.ssh/keys/local/rsa-4096_Termux |
Beta Was this translation helpful? Give feedback.
Termux doesn't set a password by default.
As such to enable password based login via SSH you need to set a password using the
passwd
utility.The password is only used for remote authentication, not inside the Termux environment itself.
Alternatively you can use key based authentication and append the public key of your key pair to the
~/.ssh/authorized_keys
file inside Termux (you may need to create this file if it does not exist).You can then authenticate by just supplying the corresponding private key to SSH when logging in, either with the
-i
flag or by setting up a "Host section" in your~/.ssh/config
file on the remote side.Something along these lines.
# Any name after the "Host" …