ssh user@remote -c mv /etc/dhcpd.conf /etc/dhcpd.conf.1 scp dhcpd.conf user@remote:/etc/dhcpd.conf ssh user@remote su /etc/init.d/dhcpd restart