Ssh into the XO: Difference between revisions

From OLPC
Jump to navigation Jump to search
Line 39: Line 39:
where <ip-address> is replaced by the IP address for your XO.
where <ip-address> is replaced by the IP address for your XO.


* '''Windows users''' will want to [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html download puTTY], launch the .exe, and type root@<ip-address> in the ip address entry field.
* '''Windows users''' will want to [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 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 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.
You'll see a shell prompt if you are successful.

Revision as of 21:50, 22 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. 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.