LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   agety dial-in setup (https://www.linuxquestions.org/questions/linux-newbie-8/agety-dial-in-setup-440413/)

slack66 04-30-2006 10:26 PM

agety dial-in setup
 
i just want to access my remote server using agetty how do i configure my linux box to become a dial-in server?
and iam using windows xp to access my linux box

joking 05-01-2006 08:30 PM

modifying /etc/inittab on most systems to respawn the port you have the modem on will do the trick. you will have to either init q or reboot the server at that point then when you dial in it should answer on between rings 1 and 3.

or you can attach the server to the internet and vnc into the server. run apache on the server for web interface. run a secure ftp server for file transfers.

don't forget to create a user and a strong password on the server.

DavidPhillips 05-01-2006 08:37 PM

http://www.faqs.org/docs/Linux-HOWTO...tml#PPP-SERVER


You really should follow a howto like the one above first. This way you will have more of an idea what's going on and then if you have questions you could get more detailed help.

However I'm not using agetty and recommend mgetty since I'm using it.

I can also receive faxes on the same line and they can be emailed to you as they are received.

It's not complicated at all.

Here is my options file which I have added some dns stuff and wins server to it...

Code:

# > cat /etc/ppp/options



asyncmap 0
netmask 255.255.255.0
ms-dns 68.63.0.5
ms-dns 68.63.0.6
ms-wins 192.168.1.101
proxyarp
lock
crtscts
modem
mtu 512
debug

and /etc/inittab entry which answers the phone. You have other options here so see man mgetty..
Code:

S0:2345:respawn:/sbin/mgetty -s 57600 -x 3 ttyS0
My method of starting the login in /etc/mgetty+sendfax/login.config...
Code:

/AutoPPP/ -    a_ppp  /usr/sbin/pppd auth -chap +pap login asyncmap 0 192.168.1.101:192.168.1.201
You could also support chap if you wish.

The method I prefer using requires that the users allowed to login are added to the pap-secrets file.
Code:

#cat /etc/ppp/pap-secrets
# client        server  secret                  IP addresses
david          *      ""              192.168.0.201

Don't put your password in the file

slack66 05-04-2006 08:04 AM

thank david:)

i will try to install mgetty to my linux box:) another question if i dont have a dns server can i ommite the ms-dns option? and can i access my linux box thru my windows without using hyperterminal???

DavidPhillips 05-04-2006 11:34 PM

You can omit the dns if the box is not accessing the internet it's not needed. However if the box has a connection then you could use it as a dialup ISP. I am guessing it does not and that's why you are dialing in.



Once you have logged in you could use putty. Putty will work for several types of shell logins. You should use ssh to be sure the connection is secured. It is pretty safe to have ssh running as opposed to the other unsecured logins like telnet.



You could also use vnc for a desktop gui but it will be too slow over a modem.


All times are GMT -5. The time now is 05:03 AM.