- Install [Debian9](https://www.debian.org/distrib/netinst), with only the SSH server and "system utilities"
- Create your user in the install
- On reboot login as your user, then:
- ` export EDITOR=nano #skip if you can use vi `
- `su` - the password
- `apt-get install sudo`
- `export EDITOR=nano`#skip if you can use vi
- `visudo`
- Add your user to the Allow members of group etc line, replace $USER with your user name.
- Add your user to the Allow User privilege specification line, replace $USER with your user name.
` $USER ALL=(ALL:ALL) ALL `
Save and Exit
Close SSH Session
@ -13,7 +15,7 @@ Close SSH Session
On your local machine, assuming you have [created an SSH key pair](https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server):
> ` ssh-copy-id $USER@"ip address of your node" `
Answer yes then type the current user's password.
Answer yes then type your user's password.
#### SSH to your node:
>` ssh $USER@IPADDRESS`
@ -24,7 +26,7 @@ If it logs in without a password prompt, your key pair is installed and we can g
Scroll down to
>` #Port 22`
Remove the '#' and change the port, scroll down to
Remove the '#' and change the port if you want to, scroll down to
>`#PasswordAuthentication yes `
Remove the '#' and change 'yes' to 'no'
@ -35,11 +37,13 @@ Save and Exit, then run the following commands to restart ssh server.