解决live CD方式启动Ubuntu系统不能启动openssh-server服务
来源:互联网 发布:淘宝双十一抽奖在哪里 编辑:程序博客网 时间:2024/05/20 21:23
当直接从Live CD镜像(例如从U盘)启动Ubuntu系统时,如果想要安装sshd服务,那么需要安装openssh-server软件包,如果用apt-get install的方式安装不了就换用aptitude安装,安装成功后却发现启动不了ssh服务,如下所示:
问题展现:
Preconfiguring packages ...Selecting previously unselected package openssh-server.(Reading database ... 154905 files and directories currently installed.)Unpacking openssh-server (from .../openssh-
server_ 1%3a6.0p1- 1ubuntu1_ i386.deb) ...Selecting previously unselected package ssh-import-id.Unpacking ssh-import-id (from .../ssh- import- id_2.12- 0ubuntu1_ all.deb) ...Processing triggers for ureadahead ...Processing triggers for ufw ...Processing triggers for man-db ...Setting up openssh-server (1:6.0p1-1ubuntu1) ...Creating SSH2 RSA key; this may take some time ...Creating SSH2 DSA key; this may take some time ...Creating SSH2 ECDSA key; this may take some time ...initctl: Unknown job: sshstart: Unknown job: sshSetting up ssh-import-id (2.12-0ubuntu1) ... Trying to start it manually produces the same result:
ubuntu@ubuntu:~$ sudo start sshstart: Unknown job: sshubuntu@ubuntu:~$ sudo /etc/init.d/ssh startRather than invoking init scripts through /etc/init.d, use the service(8)utility, e.g. service ssh startinitctl: Unknown job: ssh
Since the script you are attempting to invoke has been converted to anUpstart job, you may also use the start(8) utility, e.g. start ssh
解决方案:
参考资料:openssh-server package does not start sshd on a live CD boot
- 解决live CD方式启动Ubuntu系统不能启动openssh-server服务
- 解决live CD方式启动Ubuntu系统不能启动openssh-server服务
- 从硬盘启动Ubuntu 8.10 Live CD
- 重装windows后 用live cd修复ubuntu启动gurb
- WINDOWS登陆密码更改后,SQL SERVER不能启动解决方式
- 问题:不能使用U盘或CD启动系统
- SQL SERVER 2005 (MSSQLSERVER) 服务不能启动
- SQL Server 2005 (MSSQLSERVER) 服务不能启动
- sql server(MSSQLSERVER)服务不能启动 解决办法
- [已解决]:sql server 2008 R2的sql server服务不能启动
- 解决监听器服务不能启动的问题
- 不能正常启动OracleOraHome92ManagementServer服务解决啦
- OracleOraHome90Agent服务如果不能启动解决
- OracleDBConsole服务不能启动原因与解决
- OracleDBConsole服务不能启动原因与解决
- 解决MYSQL解压版不能启动服务
- 将Ubuntu 8.04 Live CD Desktop放在硬盘上启动
- Ubuntu 13.10 不能启动wps解决
- virtual circuit wait等待事件
- python爬虫学习(一)
- Java基础部分笔记
- 谷歌招聘新员工五大标准:文凭一边玩去
- View Controller的生命周期
- 解决live CD方式启动Ubuntu系统不能启动openssh-server服务
- 利用freemarker、java生成html静态页面
- 编译型语言和解释型语言的区别和优劣
- 韩信点兵问题
- 狐狸
- C和C++动态内存分配和释放的区别
- 斜率优化专题4——bzoj 1911: [Apio2010] 特别行动队 题解
- ios的View的AutoresizingMask属性
- 理解傅立叶变换的本质——背景篇
这应该算是Ubuntu的一个bug,可以用下面的方法解决:
ubuntu@ubuntu:~$ sudo /usr/sbin/sshdMissing privilege separation directory: /var/run/sshdubuntu@ubuntu:~$ sudo mkdir /var/run/sshdubuntu@ubuntu:~$ sudo /usr/sbin/sshdubuntu@ubuntu:~$ netstat -nltActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address Statetcp 0 0 127.0.0.1:53 0.0.0.0:* LISTENtcp 0 0 0.0.0.0:22 0.0.0.0:* LISTENtcp 0 0 127.0.0.1:631 0.0.0.0:* LISTENtcp6 0 0 :::22 :::* LISTEN
启动端口22表示ssh服务成功启动,可以使用ssh localhost测试下。