Linux Kit Quickstart


Add to my manuals
95 Pages

advertisement

Linux Kit Quickstart | Manualzz

phyCORE-MPC5200B-IO Getting Started

Enter root as login and press Enter.

Enter ./HelloWorld and press Enter.

The program starts and you should see the following output:

Welcome to the World of the phyCORE-MPC5200B-IO!

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 in to 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 phyCORE-MPC5200B-IO is the

hosts.equiv

method combined with RSA-based host authentication.

If the machine the user logs in from is listed in

© 2009 PHYTEC Messtechnik GmbH L-679e_6

35

phyCORE-MPC5200B-IO Quick Start Instructions

/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 pubic 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.

This authentication method closes security holes due to IP spoofing, DNS spoofing, and routing spoofing. But note that

/etc/hosts.equiv

is, in general, inherently insecure and should be disabled if security is a concern.

36

Click the SSH for Target icon on the desktop.

A new window opens.

© 2009 PHYTEC Messtechnik GmbH L-679e_6

phyCORE-MPC5200B-IO Getting Started

In this window you can see that the authenticity of the phyCORE-

MPC5200B-IO can’t be established. This is normal if you want to create an SSH connection for the first time.

Enter yes and press Enter to continue. The RSA public key of the target will be permanently added to the list of the known hosts.

Troubleshooting:

If an error occurs and you can’t see the root@phyCORE:~> prompt, open a terminal window and enter the following command:

rm ~/.ssh/known_hosts

Try to log in again by entering:

ssh

[email protected]

Enter yes to add the target to the list of known hosts.

Now you should see the target’s prompt.

We expect that you haven’t changed the SSH configuration file on your host. If you change this file, the authentication may not work.

Now you are logged in, you can execute programs on the target.

© 2009 PHYTEC Messtechnik GmbH L-679e_6

37

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement

Table of contents