glenngrass
Posts: 10
Joined: Wed Mar 27, 2013 3:22 pm

Getty and SSH

Sun Nov 24, 2013 6:41 pm

I'm currently using SSH(via ethernet cable) to login to my Raspberry pi and access it using my Laptop.(using Putty on Windows 8)

I have to use the serial port(in GPIOs tty0) for a certain application. For that the tutorial asks to disable Getty in /etc/inittab, by commenting the following line.

Code: Select all

T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
My problem is; if I disabled "getty" will I be unable to access the Raspberry Pi using SSH? I'm a little worried as Getty is described as the program which displays the remote login screen..
Last edited by glenngrass on Sun Nov 24, 2013 6:59 pm, edited 1 time in total.

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: Getty and SSH

Sun Nov 24, 2013 6:53 pm

Look at /etc/inittab and see...

I think you will find that it is applied per-port, not system-wide.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Getty and SSH

Sun Nov 24, 2013 6:59 pm

Getty is only used on the console. Usually from /etc/inittab. There's six virtual consoles (ctrl+alt+1 to ctrl+alt+6) in Raspbian.
sshd launches a bash shell when you logon, it doesn't use getty or a pts device.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Getty and SSH

Sun Nov 24, 2013 7:00 pm

The getty entries in /etc/inittab have nothing to do with ssh logins.

glenngrass
Posts: 10
Joined: Wed Mar 27, 2013 3:22 pm

Re: Getty and SSH

Sun Nov 24, 2013 7:01 pm

DougieLawson wrote:Getty is only used on the console. Usually from /etc/inittab. There's six virtual consoles (ctrl+alt+1 to ctrl+alt+6) in Raspbian.
sshd launches a bash shell when you logon, it doesn't use getty or a pts device.
Thanks DougieLawson,
I was just afraid that, in case getty was used by SSH, I want be able to login to my Pi again.. :D .. Thanks for solving my problem..

glenngrass
Posts: 10
Joined: Wed Mar 27, 2013 3:22 pm

Re: Getty and SSH

Sun Nov 24, 2013 7:05 pm

rpdom wrote:The getty entries in /etc/inittab have nothing to do with ssh logins.
Thanks.

Return to “Troubleshooting”