note: already signed in as root
user, if signed in as a non-root user, add sudo
before the cmd
$ adduser <username>
$ passwd <username>
Make sure the wheel
group is granted sudo privileges:
$ visudo
Uncomment the second line as following:
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
$ gpasswd -a <username> wheel
$ ssh-keygen -t rsa # only need if key is not generated before
$ ssh-copy-id <username>@<ip addr>