1、在终端打入下面命令进行安装
sudo apt-get install openssh-server
2、启用ssh
service ssh start
反馈:start: Rejected send message, 1 matched rules; type="method_call", sender=":1.56" (uid=1000 pid=2272 comm="start ssh ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
3、查看状态
sudo service ssh status
反馈:ssh start/running, process 2145
时间: 2024-10-29 19:08:48