在自定义AMI中,sshd还没有开始

时间:2012-05-25 11:42:26

标签: ssh amazon-ec2 amazon-web-services connectivity ami

我创建了自己的AMI&当我开始我的实例时,sshd还没有开始。可能是什么问题?

请在下面找到系统日志代码段

init: rcS main process (199) terminated with status 1

Entering non-interactive startup
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Bringing up loopback interface: OK 

Bringing up interface eth0: 
Determining IP information for eth0...type=1400 audit(1337940238.646:4): avc: denied { getattr } for pid=637 comm="dhclient-script" path="/etc/sysconfig/network" dev=xvde1 ino=136359 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file
martian source 255.255.255.255 from 169.254.1.0, on dev eth0
ll header: ff:ff:ff:ff:ff:ff:fe:ff:ff:ff:ff:ff:08:00
type=1400 audit(1337940239.023:5): avc: denied { getattr } for pid=647 comm="dhclient-script" path="/etc/sysconfig/network" dev=xvde1 ino=136359 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file
type=1400 audit(1337940239.515:6): avc: denied { getattr } for pid=674 comm="dhclient-script" path="/etc/sysconfig/network" dev=xvde1 ino=136359 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file
type=1400 audit(1337940239.560:7): avc: denied { getattr } for pid=690 comm="dhclient-script" path="/etc/sysconfig/network" dev=xvde1 ino=136359 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file
done.
OK 

Starting auditd: OK 

Starting system logger: OK 

Starting system message bus: OK 

Retrigger failed udev events OK 

Starting sshd: FAILED

1 个答案:

答案 0 :(得分:0)

问题是由于selinux。一旦我在启动期间通过在GRUB for kernel字段中提供selinux = 0作为参数来禁用selinux,启动了sshd服务启动的机器并且我能够连接到它。