Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Raspbian and I am trying to get it so I don't have to enter a username and password every time I switch on. I tried replacing:

1:2345:respawn:/sbin/getty --noclear 38400 tty1


1:2345:respawn:/bin/login -f pi tty2 </dev/tty1 >/dev/tty1 2>&1

in /etc/inittab. Now when i turn it on, it does a lot of loading up, but stops after:

[ ok ] Starting OpenBSD Secure Shell server: sshd.

and I can't do anything, apart from pressing Ctrl-Alt-Del which causes it to reboot. How do I get it back to how it was/get it to login automatically? Is there anyway I can get a terminal from here?

The only other changes to the system I have made are installing a few Perl modules, and re-sizing the partitions on the SD card.


share|improve this question
Is there anyway I can get a terminal from here? It seems an SSH server is already running ([ ok ] Starting OpenBSD Secure Shell server: sshd.). Did you try to log into your RPi through SSH? – Morgan Courbet Nov 9 '12 at 10:40
No I haven't. I haven't done it before or done anything to set that up, will it work 'out of the box'? I'll try it when I get home. Thanks – kiteflyingmonkey Nov 9 '12 at 11:07
up vote 2 down vote accepted

I was able to login to my Raspberry Pi through SSH. To do this I downloaded PuTTY from here. Aparently SSH is enabled by default on Raspbian.

It turned out I hadn't made the changes quite right, I had written:

1:2345:respawn:/sbin/getty -f pi tty2 </dev/tty1 >/dev/tty1 2>&1

instead of:

1:2345:respawn:/bin/login -f pi tty2 </dev/tty1 >/dev/tty1 2>&1

Thanks to @Morgan for pointing me in the right direction.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.