使用 apt-get install ssh 安装了ssh,安装后使用一切正常 但是就是该服务不能随ubuntu的开机启动,我需要的是,当ubuntu到达登陆界面时就可以使用ssh。 但是直接apt-get 完,它并没具备这样的功能。 在网上搜了一下,说是修改/etc/rc.local文件 于是我在exit 0这一句的前面,添加了 /etc/init.d/ssh start 重启后,ssh还是没有自动启动,我仍然需要登陆后,手动输入上面的命令才可? 请问,这是哪里出了问题?应该怎么解决?
by alexandnpu - Linux系统管理 - 2010-08-10 11:15:41 阅读(3402) 回复(2)
(Intro)介绍 This will describe and explain the start-up process of ubuntu Linux . 这里将描述和解释ubuntu Linux的启动过程 (rc2.d) Like Debian, ubuntu boots up in runlevel 2. Because of that, we'll find the details we want in /etc/rc2.d. Inside that directory, we find: 就像Debian,ubuntu默认开机运行等级为2。因此,我们将在/etc/rc2.d发现我们想要的详细资料。在那个目录,我们发现: >> sysklogd >> klogd ...
系统突然断电,重启后ssh 服务无法启动。 # svcs -xv svc:/application/print/server:default (LP print server) State: disabled since Mon Dec 13 16:24:53 2010 Reason: Disabled by an administrator. See: http://sun.com/msg/SMF-8000-05 See: man -M /usr/share/man -s 1M lpsched Impact: 2 dependent services are not running: svc:/application/print/rfc1179:default svc:/application/print/...
修改 /etc/ssh/sshd_config文件,将其中的“PermitRootLogin no”修改为“PermitRootLogin yes”,再执行 svcadm restart ssh 重新启动ssh服务。 root@test # svcadm restart ssh root@test # svcs -a | grep ssh offline 15:13:09 svc:/network/ssh:default root@test # 无法启动ssh服务呢?
修改 /etc/ssh/sshd_config文件,将其中的“PermitRootLogin no”修改为“PermitRootLogin yes”,再执行 svcadm restart ssh 重新启动ssh服务。\r\nroot@test # svcadm restart ssh\r\nroot@test # svcs -a | grep ssh\r\noffline 15:13:09 svc:/network/ssh:default\r\nroot@test # \r\n\r\n无法启动ssh服务呢?
输入命令ssh 会有一堆提示 但是如果输入 service sshd start 就提示没有此服务 在etc目录下存在ssh文件夹还有ssh_config 配置文件 请问是不是ssh 没有装 还是其他问题?多谢