File transmission, Examples, Disabling the telnet port of the unit – SENA STS Series User Manual

Page 96

Advertising
background image

96

8.7. File Transmission

The users can use an ftp client for file transmission and use /usr2 directory for data read/write

[email protected]:~# cd /usr2
[email protected]:/usr2# ftp 192.168.2.3
Connected to 192.168.2.3.
220 lxtoo.senalab.co.kr FTP server (Version wu-2.6.1-16) ready.
Name (192.168.2.3:root): sena
331 Password required for sena.
Password:
230 User sena logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> get test.tgz
local: test.tgz remote: test.tgz
200 PORT command successful.
150 Opening BINARY mode data connection for test.tgz (350 bytes).
226 Transfer complete.
350 bytes received in 0.04 secs (9.6 kB/s)
ftp> bye

In addition to a regular FTP client, the user can copy files securely as encrypted using scp client

program. If the user wants to copy a file from the STS Series(192.168.0.120) to user’s PC, type a

command on the user’s PC as shown below:

[root@localhost work]# scp [email protected]:/usr2/rc.user /work
The authenticity of host '192.168.0.120 (192.168.0.120)' can't be established.
RSA key fingerprint is c1:70:ab:52:48:ab:e5:dc:47:9c:94:ed:99:6f:94:4f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.120' (RSA) to the list of known hosts.
[email protected]'s password:
rc.user

100% |*****************************|

173

00:00

[root@localhost work]#

8.8. Examples

8.8.1. Disabling The Telnet Port Of The Unit

The STS Series unit does not support disabling the remote console port individually (port 22 for SSH

or port 23 for Telnet to the box)

Currently, the user can only disable or enable all remote consoles together. This must be done using

the UI or console configuration menu.

The user may bypass this and disable only one (Telnet or SSH) remote console by modifying the script

'rc.user'. Below are two examples of how this could be done.

Example1. Modify 'inetd.conf'

Step 1 Modify /etc/inetd.conf (comment out or delete telnet service)

Step 2 Copy inetd.conf to /usr2/inetd.conf

Advertising