Skip to content

Can't access Termux sshd #18318

Closed Answered by TomJo2000
andruska asked this question in Q&A
Discussion options

You must be logged in to vote

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" …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andruska
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants