<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6618.4">
<TITLE>connecting linux console using serial port (NOW PPP)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Alex, thanks for your soon answer, but in case I want to configure PPP on this server, what files do I have to configure?</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Can I login in this server using SSHD over a PPP conection?</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Regards;</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Israel</FONT></SPAN><SPAN LANG="es"></SPAN><SPAN LANG="en-us"></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">></FONT></SPAN><SPAN LANG="es"><I></I></SPAN><I><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> Just terminal access -> I want to login in my linux server connecting</FONT></SPAN></I></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">></FONT></SPAN><SPAN LANG="es"><I></I></SPAN><I><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> through the modem connected in /dev/ttyS0</FONT></SPAN></I></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Not sure if this is complete.</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Install mgetty if not already present on your system.</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Go to /etc/mgetty+sendfax directory. If you have CallerID feature on </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">your phone line (and you should get it if you don't have it yet), edit </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">dialin.config file and add telephone numbers you will be dialing from. </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> At least this will prevent clueless script-kiddies from getting </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">login prompt on your modem line. I know that some of my modems get </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">regullary probed from strange phone numbers (and those are dedicated </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">modem lines -- no voice calls on them, not listed in white pages, too </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">often on too many lines to be the simple case of wrong number).</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">While there, check login.config file. If you don't want PPP on it, </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">make sure /AutoPPP/ is commented (should be default). Make sure "* - </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">- /bin/login @" line is not commented (should be last line in the </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">default config file). That's the line that will give you login prompt.</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Edit /etc/inittab and add something like this:</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">s0:2345:respawn:/sbin/mgetty -D -n 2 -s 115200 /dev/ttyS0</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">The "-n 2" tells mgetty to pick up the phone after second ring. You </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">need to wait till second ring because telephone company sends CallerID </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">information between first and second ring. If you configured mgetty </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">to answer after first ring, it would never get CallerID information.</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Execute "telinit q" as root (this tells init process to reread inittab file).</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Configure and connect modem and you should be set to go. I do not </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">recommend allowing root to login directly from modem line (could be </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">configured by editing /etc/securetty and /etc/security/access.conf </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">files if needed, but not wise idea). Login as normal user, than su to </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="es"><FONT SIZE=2 FACE="Courier New">root.</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="es"><FONT SIZE=2 FACE="Courier New">-- </FONT></SPAN></P>
</BODY>
</HTML>