Ssh into the XO

From OLPC
Revision as of 23:07, 5 August 2011 by Quozl (talk | contribs)
Jump to: navigation, search
Emblem-warning.png The currency of this article or section may be limited by out-of-date information.
There may be relevant discussion on its talk page

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)-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, and hit "Open." (hit "Yes" for any pop-ups that come up.)

You'll be prompted for a password either way; use the one you just set for root.

You'll see a shell prompt if you are successful.