Moxa V2406-24I-CT-T-LX [28/81] Enabling the telnet ftp server

Moxa V2406-24I-T-LX [28/81] Enabling the telnet ftp server
V2406/2422/2426 Linux User’s Manual Managing Communications
3-4
setinterface device-node [interface-no]
device-node: /dev/ttyMn; n = 0,1,2,...
interface-no: [see following table]:
interface-no Operation Mode
None Display current setting
0 RS-232
1 2-wire RS-485
2 RS-422
3 4-wire RS-485
For example, use the following commands to set /dev/ttyM0 to RS-422:
MOXA:~# setinterface /dev/ttyM0 2
MOXA:~# setinterface /dev/ttyM0
Now setting is RS422 interface.
MOXA:~#
NOTE
The V2422 and V2426 can be used with two expansion modules with eight serial ports. The corresponding
device nodes would be from ttyM8 to ttyM15.
Telnet/FTP Server
In addition to supporting Telnet client/server and FTP client/server, the V2406/2422/2426-LX also supports
SSH and sftp client/server. To enable or disable the Telnet/ftp server, you need to edit the file
/etc/inetd.conf.
1. Mount the root file system with write permission.
MOXA:~# mount -o remount,rw /dev/hda1 /
2. Type # cd /etc to change the directory.
MOXA:~# cd /etc
3. Type # vi inetd.conf to edit the configuration file.
MOXA:/etc# vi inetd.conf
Enabling the Telnet/FTP Server
The following example shows the default content of the file /etc/inetd.conf. The default is to enable the
Telnet/ftp server:
discard dgram udp wait root /bin/discard
discard stream tcp nowait root /bin/discard
telnet stream tcp nowait root /bin/telnetd
ftp stream tcp nowait root /bin/ftpd -l

Содержание

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

Скачать