User's Manual

Doc #: 1ANSU-160004
DNI SGDC-D22 User Manual
i. 24
7.4. FTP & SCP
FTP and SCP can be used for file transmission to the DCU. Ftp is the normal way to transmit file on the internet, and
SCP is a file transmission way on the SSH protocol.
You can turn on those services on the /etc/inetd.conf to make them as auto-run daemon after booting.
# vi /etc/inetd.conf
ftp stream tcp nowait root /usr/local/sbin/pure-ftpd pure-ftpd -H &
telnet stream tcp nowait root /usr/sbin/telnetd telnetd -i
ssh stream tcp nowait root /usr/bin/dropbear dropbear -i
#www stream tcp nowait root /usr/sbin/httpd httpd -i -h /home/htdocs
The default port of ftp service will be port 21.
SCP:
SCP can be used correctly when SSHd is turned on.
FTP/SCP client on PC:
FTP: http://filezilla-project.org/download.php
SCP: http://winscp.net/
FTP/SCP client on DCU
FTP:
# ftpget u username p password HOST_IP [LOCAL_FILE] REMOTE_FILE
# ftpput u username p password HOST_IP REMOTE_FILE [LOCAL_FILE]
SCP:
# scp root@HOST_IP:/REMOTE_FILE LOCAL_FILE
# scp LOCAL_FILE root@HOST_IP:/REMOTE_FILE