Can I disable all TTYs in an EC2 instance?

I am maintaining an ec2 bootstrapping script for debian squeeze on github. The setup has become very minimal and I try to justify all my changes to the standard setup.

Currently I am wondering whether there would be any problem with disabling all TTYs via /etc/inittab.
People log in to an AMI via ssh anyways, which spawns its own shell.
Is there anything that can be installed on the server which expects a TTY to be present?
Would XEN have a problem with this in the long run?

p.s.: Github issue here


Solution 1:

It's not the TTYs you would disable; it is the gettys (you can also modify udev rules to not create device files for the ttys, but they are implemented in the kernel).

If you log in only via SSH and do not log in through any of the console ttys or a serial tty ever, by all means remove the inittab rules that run a getty on them. However, I would personally recommend leaving one, for troubleshooting purposes (in case sshd doesn't work for some reason). Their load on your system resources is pretty minimal.