sudo apt-get install openssh-serversudo service ssh startsudo sysv-rc-confvim /etc/apt/sources.list
添加镜像源:
deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
输入wq!保存退出
第一步:apt-get update 进行更新;
第二步:apt-get install sysv-rc-conf;安装命令
第四步:ls /usr/sbin | grep sysv;确认是否存在
第五步:cp /usr/sbin/sysv-rc-conf /usr/sbin/chkconfig;更名
第六步:ls /usr/sbin | grep chk #确认修改成功
第七步:#赋予权限
cd /usr/sbin
chmod 755 chkconfig
第八步:chkconfig;测试
sudo vim /etc/ssh/sshd_configsudo service ssh restart