Ssh into the XO: Difference between revisions

From OLPC
Jump to navigation Jump to search
mNo edit summary
Line 24: Line 24:
ifconfig
ifconfig
</code>
</code>

This will display a lot of text; what you're looking for is the string of numbers (4 numbers separated by periods) at the top right after the words "inet addr" for eth0.
This will display a lot of text; what you're looking for is the string of numbers (4 numbers separated by periods) at the top right after the words "inet addr" for eth0.



Revision as of 18:56, 18 September 2008

Sometimes you'll want to access your XO remotely from another computer. To do this, we can use ssh. Here's how.

On the XO

Set a password for root

By default, root does not have a password on the XO, and you won't be able to ssh in. Here's how to fix that.

  • Open the Terminal Activity
  • Become root by typing (at the prompt)

su

  • Set your password (follow the prompts).

passwd

Find out your ip address

Then we need to find the IP address we are sshing to. Still using Terminal:

ifconfig

This will display a lot of text; what you're looking for is the string of numbers (4 numbers separated by periods) at the top right after the words "inet addr" for eth0.

On the other computer

Now open up a terminal on the other computer you want to ssh in from and type

ssh root@<ip-address>

where <ip-address> is replaced by the IP address for your XO. You'll be prompted for a password; use the one you just set for root.

If you see the "Hello, children of the world!" display followed by a shell prompt, you are now ssh'd in to your XO.