Moxa DA-662A-16-LX [34/63] Telnet ftp

Moxa DA-662A-I-8-LX [34/63] Telnet ftp
DA-662A Series Software Managing Communications
4-2
Telnet / FTP
In addition to supporting Telnet client/server and FTP client/server, the DA-662A series also supports SSH and
sftp client/server. To enable or disable the Telnet, you first need to edit the file /etc/inetd.conf.
Enabling the Telnet
The following example shows the default content of the file /etc/inetd.conf. The default is to enable the
Telnet server:
discard dgram udp wait root /bin/discard
discard stream tcp nowait root /bin/discard
#ftp stream tcp6 nowait root /sbin/pure-ftpd -H -g /var/run/ftpd.pid
telnet stream tcp6 nowait root /bin/telnetd
Disabling the Telnet
Disable the daemon by typing ‗#‘ in front of the first character of the row to comment out the line and reboot
the computer.
To enable or disable the FTP server, use the following commands:
Enabling the FTP server
#cd /etc/rc.d/rc3.d
#ln -s /etc/rc.d/init.d/pure-ftpd S99pure-ftpd
NOTE
By default, the FTP server is enabled. You do not need to change the configuration to use the FTP server to
transfer files.
Disabling the FTP server,
Removing the run file from /etc/rc.d/rc3.d by using the following command:
#rm -f /etc/rc.d/rc3.d/S99pure-ftpd
DNS
The DA-662A series support DNS client (but not DNS server). To set up DNS client, you need to edit three
configuration files: /etc/hosts, /etc/resolv.conf, and /etc/nsswitch.conf.
/etc/hosts
This is the first file that the Linux system reads to resolve the host name and IP address.
/etc/resolv.conf
This is the most important file that you need to edit when using DNS for the other programs. For example,
before using #ntpdate time.nist.goc to update the system time, you will need to add the DNS server address
to the file. Ask your network administrator which DNS server address you should use. The DNS server‘s IP
address is specified with the ―nameserver‖ command. For example, add the following line to /etc/resolv.conf
if the DNS server‘s IP address is 168.95.1.1:
nameserver 168.95.1.1
10.120.53.100 - PuTTY
root@Moxa:/etc# cat resolv.conf
#
# resolv.conf This file is the resolver configuration file
# See resolver(5).
#
#nameserver 192.168.1.16
nameserver 168.95.1.1

Содержание

Похожие устройства

Скачать