Uploading Files With Tftp; Uploading Files With Sftp - GARZ&FRICKE GUF-Yocto-34.0-r5756-0-VINCELL User Manual

Embedded computer systems
Table of Contents

Advertisement

GUF-Yocto-34.0-r5756-0
$ telnet 192.168.1.1
The login prompt appears and you can login with username and password:
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
vincell login: root
Password: [Enter password]
root@vincell:~#
3.4 Uploading files with TFTP
You can copy files from the host system to the target system using the target's TFTP client. Please note that
a TFTP server has to be installed on the host system. Usually, a TFTP server can be installed on every Linux
distribution. To install the TFTP server under Debian based systems with apt, the following command must be
executed on the host system:
$ sudo apt-get install xinetd tftpd tftp
The TFTP server must be configured as follows in the
provide the directory
/srv/tftp
service tftp
{
protocol
port
socket_type
wait
user
server
server_args
disable
}
The
/srv/tftp
directory must be created on the host system with the following commands:
$ sudo mkdir /srv/tftp
$ sudo chmod -R 777 /srv/tftp
$ sudo chown -R nobody /srv/tftp
After the above modification the xinetd must be restarted on the host system with the new TFTP service with the
following command:
$ sudo service xinetd restart
From now on, you can access files in this directory from the target.
Example: Copying the file
copy the file
myapp
to your TFTP directory on the host system:
$ cp ./myapp /srv/tftp/
The host system is assumed to have the ip address 192.168.1.100. On the target system, type:
root@vincell:~# tftp -g 192.168.1.100 -r myapp -l /usr/bin/myapp
3.5 Uploading files with SFTP
You can exchange files between the host system and the target system using an SFTP (Secure FTP) client on
the host system. Simply choose your favourite SFTP client (e.g. FileZilla) and connect to
10
VINCELL
User Manual
¡
¡
as TFTP directory:
= udp
= 69
= dgram
= yes
= nobody
= /usr/sbin/in.tftpd
= /srv/tftp
= no
myapp
from the host system to the target's
/etc/xinetd.d/tftpd
file on the host system in order to
/usr/bin
directory. To achieve this, first
with
sftp://192.168.1.1

Advertisement

Table of Contents
loading

Table of Contents