raspberry pi - Installing openssh-server on RPi 2 (Ubuntu Mate) -


i'm trying install openssh-server on rpi 2 fresh ubuntu mate using etc/rc.local. tried use this:

#!/bin/sh -e # # rc.local # # script executed @ end of each multiuser runlevel. # make sure script "exit 0" on success or other # value on error. # # in order enable or disable script change execution # bits. # # default script nothing.  apt-get update && apt-get -y install openssh-server  exit 0 

but nothing installed or changed on rpi. doing wrong?


Comments