Ssh into the XO

From OLPC
Revision as of 17:39, 22 September 2008 by 18.85.18.103 (talk) (Find out your ip address)
Jump to: navigation, search

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. Look at the first block (prompted by eth0) and the "inet addr:" gives you the ip address; what you're looking for is the string of numbers (4 numbers separated by periods).

On the other computer

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

  • Linux and Mac OS X users should already have a built-in terminal application: in that terminal, type

ssh root@<ip-address>

where <ip-address> is replaced by the IP address for your XO.

  • Windows users will want to download puTTY, launch the .exe, and type root@<ip-address> in the ip address entry field.

You'll be prompted for a password either way; 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.