Project

General

Profile

How to change username and hostname, generate ssh key and add machines to known hosts?

Added by Steve Biggs over 7 years ago

Hi,

Replicant is great!

I use the terminal emulator a lot to access various other machines via ssh. My user@hostname currently shows u0_a33@android and my device shows up in nmap, last login from, etc as android-d710e99fb... etc (some long hash).

So, questions:

1. How do I change the username?

2. How do I change the hostname?

3. How do I generate an ssh key?

(NB: I know how to adduser and do 2 & 3 on my Linux laptop but not sure how to change username and not sure if there are any replicant specific issues to consider. Just want to check before I go and break my phone!)

4. Adding another machine that I connect to via ssh to known hosts never seems to work. How do I fix this?

Thanks,
Steve