![Phytec Linux-Kit phyCARD-M Quick Start Instructions Download Page 42](http://html1.mh-extra.com/html/phytec/linux-kit-phycard-m/linux-kit-phycard-m_quick-start-instructions_1554142042.webp)
phyCARD-M
Quick Start Instructions
2.6.3
Using SSH to Execute a Program on the Target
SSH can be used if you want to execute a program directly from the host on
the target. Later, this will be used to execute programs out of Eclipse on the
target. Before you can start programs out of Eclipse, you have to log into
the target via SSH from the command line for one time. This is necessary to
add the RSA public key of the target to the list of known hosts.
There are several authentication methods when using SSH.
The method used on the
phyCARD-M is the
hosts.equiv
method combined with RSA-based host authentication.
If the machine the user logs in from is listed in
/etc/hosts.equiv
on the remote machine, and the user name is
the same on both sides, the user is allowed to log in.
On the target, the file
/etc/hosts.equiv
has the following entry:
# file: /etc/hosts.equiv
#
# Allow access from everywhere.
#
+ +
The “
+ +
” means that every user can log in from every host.
When the host connects to the target, the file
~/.ssh/known_hosts
(on the host) is consulted when using
hosts.equiv
with RSA host authentication to check the public
key of the target. The key must be listed in this file to be
accepted. When the host connects to the target for the first
time, you will be asked to store the target’s RSA public key to
your
~/.ssh/known_hosts
. If you agree to do this, then the host
will be able to connect to the target without entering a
password.
38
© 2010 PHYTEC Messtechnik GmbH L-746e_1