Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在RPI2(UbuntuMate)上安装openssh服务器_Ubuntu_Raspberry Pi_Openssh_Raspberry Pi2 - Fatal编程技术网

在RPI2(UbuntuMate)上安装openssh服务器

在RPI2(UbuntuMate)上安装openssh服务器,ubuntu,raspberry-pi,openssh,raspberry-pi2,Ubuntu,Raspberry Pi,Openssh,Raspberry Pi2,我正在尝试在RPI2上安装openssh服务器,并使用etc/rc.local安装新的Ubuntu Mate。所以我试着用这个: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In o

我正在尝试在RPI2上安装openssh服务器,并使用etc/rc.local安装新的Ubuntu Mate。所以我试着用这个:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

apt-get update && apt-get -y install openssh-server

exit 0

但在RPi上没有安装或更改任何内容。我做错了什么?

run'sudo service ssh status'run'sudo service ssh status'