My notes on setting up an ubuntu server
- Generate key pair in PuttyGen. For Digital Ocean embed the key in the new droplet.
- Set up Putty. Copy settings from another server profile and change port, keys, address.
- Login as root Good resource for setup at Digital Ocean
- Make new account
adduser tt
- Add to sudo group
usermod -aG sudo tt
- Change to user, make ssh dir
su - tt
mkdir ~/.ssh
chmod 700 ~/.ssh
vim ~/.ssh/authorized_keys
- Paste public key
chmod 600 ~/.ssh/authorized_keys
- Change ssh settings
sudo vim /etc/ssh/sshd_config
chage settings:
PasswordAuthentication no
PermitRootLogin no
sudo systemctl reload sshd
locale
Check if panes show lines instead of qqqqqxxxxx
Check if arrow keys work on prompt
Check to see F1 - F4 work (e.g. on htop)
Check to see if I can type Japanese directly into the terminal