#!/bin/bash cat >> /etc/network/interfaces << EOF auto eth0 iface eth0 inet dhcp EOF ifup eth0 apt-get update apt-get install -y openssh-server