Ssh into the XO: Difference between revisions

From OLPC
Jump to navigation Jump to search
Line 29: Line 29:
== On the other computer ==
== On the other computer ==


Now open up a terminal on the other computer you want to ssh in from and type
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


<code>
<code>
Line 35: Line 37:
</code>
</code>


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

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.
If you see the "Hello, children of the world!" display followed by a shell prompt, you are now ssh'd in to your XO.

Revision as of 21:24, 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; 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.

  • 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.