Initial Linux Configuration

Setup SSH Access From One Computer to Another Without Passwords

EMAIL="[email]"
PORT="[port]"
USERNAME="[username]"
IP="[ip]"
ssh-keygen -t rsa -C "$EMAIL" -f ~/.ssh/id_rsa -N ""
ssh-copy-id -i ~/.ssh/id_rsa.pub "-p $PORT $USERNAME@$IP"

Run Sudo Commands Without Password Request

USERNAME="[username]"
sudo su
echo "$USERNAME ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

Set a DNS Server

sudo nano /etc/resolv.conf
nameserver [ip]

Enable Password Authentication Through SSH

sudo nano /etc/ssh/sshd_config

Change PasswordAuthentication and ChallengeResponseAuthentication to yes.

service ssh restart