#!/usr/bin/env bash
sudo sed -i 's,^\(PasswordAuthentication \).*,\1'yes',' /etc/ssh/sshd_config
sudo /etc/init.d/ssh restart
mkdir -p ~/.ssh
bash -c "cat > ~/.ssh/config" <<'EOF'
Host *
Protocol 2
TCPKeepAlive yes
ServerAliveInterval 60
EOF