<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=94.193.104.142</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=94.193.104.142"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/94.193.104.142"/>
	<updated>2026-04-22T04:25:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=SSH&amp;diff=37250</id>
		<title>SSH</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=SSH&amp;diff=37250"/>
		<updated>2009-12-29T14:03:21Z</updated>

		<summary type="html">&lt;p&gt;94.193.104.142: /* OpenSSH */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SSH (Secure SHell) is a network protocol that allows you to access a terminal shell remotely. The following use-cases are common:&lt;br /&gt;
&lt;br /&gt;
#Administrating remote computers such as servers by using the device over a secure connection instead of plain-text.&lt;br /&gt;
#When performing console operations one may stumble upon limits such as text-input, battery life, raw horsepower, or available software.&lt;br /&gt;
#Some applications require a better network connection than device provides. E.g. a colocated 100 mbit server running 24/7 is usually both faster as well as more reliable than a device on WiFi or 3G.&lt;br /&gt;
#Combined with a terminal emulator supporting detaching such as screen or dtach an application remains running after network connection is gone, device is unpowered.&lt;br /&gt;
#SSH protocol can be used for remote X11, forwarding, tunneling, [[VPN]], port knocking alternative. These are intermediate-advanced topics requiring sufficient background knowledge.&lt;br /&gt;
&lt;br /&gt;
== Flavours to install on your device ==&lt;br /&gt;
=== OpenSSH ===&lt;br /&gt;
&lt;br /&gt;
OpenSSH is the most common client and server package. It is available in [[Extras]]. You can install either only the client or server, or both depending on your particular use-case. Be aware that the installation may take a while and appear frozen, as SSH keys have to be generated during the install.&lt;br /&gt;
&lt;br /&gt;
Also the server install asks you to set a new password.&lt;br /&gt;
&lt;br /&gt;
=== Dropbear ===&lt;br /&gt;
Dropbear is an alternative ssh client/server package which uses less disk/memory.&lt;br /&gt;
&lt;br /&gt;
== On-device Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Client ===&lt;br /&gt;
To allow you to use your tablet/phone to connect to other machines.&lt;br /&gt;
&lt;br /&gt;
You can connect to a remote machine from the tablet by running &amp;lt;code&amp;gt;ssh &#039;&#039;user&#039;&#039;@&#039;&#039;server ip&#039;&#039;&amp;lt;/code&amp;gt;. This will give you a remote shell on the server machine.&lt;br /&gt;
&lt;br /&gt;
=== Server ===&lt;br /&gt;
To allow other machines to connect to your tablet/phone.&lt;br /&gt;
&lt;br /&gt;
If you wish to access a shell on the tablet from a remote machine (to edit a local file with a real keyboard, perhaps), then all that you need to do is make sure OpenSSH server is installed on the tablet and &amp;lt;code&amp;gt;ssh root@&#039;&#039;tablet ip&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that N900&#039;s are called &amp;quot;Nokia-N900-41-10&amp;quot; if allocated an IP address via DHCP (see [https://bugs.maemo.org/show_bug.cgi?id=2758 this bug])&lt;br /&gt;
&lt;br /&gt;
== PuTTY ==&lt;br /&gt;
&lt;br /&gt;
PuTTY is a client for the SSH &amp;amp; [the abysmally insecure] Telnet protocols. It is a popular client for Microsoft Windows, *Nix Operating Systems with ports even existing for Symbian phones, Windows Mobile and even the internet tablet itself. It can be used to connect to a tablet running OpenSSH to get a remote shell.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
# Load up PuTTY on the machine you want to connect to the tablet from.&lt;br /&gt;
## You should see the window titled &amp;quot;PuTTY Configuration&amp;quot; and the &amp;quot;Session&amp;quot; category selected.&lt;br /&gt;
# Ensure &amp;quot;SSH&amp;quot; is selected as the &amp;quot;Connection type:&amp;quot; and enter &amp;lt;code&amp;gt;the tablet&#039;s ip&amp;lt;/code&amp;gt; in the &amp;quot;Host Name (or IP address)&amp;quot; section.&lt;br /&gt;
# &#039;&#039;If&#039;&#039; you need to change any other settings out of necessity or personal preference for example, go and change settings as required.&lt;br /&gt;
# If you want to save these settings for future use to connect to the tablet quickly, add a name in &amp;quot;Saved Sessions&amp;quot; and press Save.&lt;br /&gt;
# Press Open and enter the name of the user you wish to connect as when prompted. (root is commonly used)&lt;br /&gt;
&lt;br /&gt;
=== Extra security AND convenience ===&lt;br /&gt;
It is fairly easy to generate a secure key to allow key-based authentication to the device. Provided you keep the key secure this is more secure than using a UNIX password (PAM).&lt;br /&gt;
&lt;br /&gt;
First, make sure you can use SSH to log in to your remote *NIX computer&#039;s user account.&lt;br /&gt;
&lt;br /&gt;
On the device you need to create a directory in the appropriate users home directory:&lt;br /&gt;
  cd&lt;br /&gt;
  mkdir .ssh&lt;br /&gt;
  chmod 700 .ssh&lt;br /&gt;
&lt;br /&gt;
Back on the remote *NIX computer run the following command:&lt;br /&gt;
  ssh-keygen -t rsa&lt;br /&gt;
You&#039;ll find a file in your home directory called .ssh/id_rsa.pub and .ssh/id_rsa&lt;br /&gt;
The .pub one is allowed out in public - you give it to other machines. The other one must be kept private.&lt;br /&gt;
&lt;br /&gt;
In the case your private key is stolen (ie. device stolen) the perpetrator has access to your machine without requiring a password. It is therefore recommended to use a password when issuing ssh-keygen command. Note this password must [i]not[/i] be the same as your UNIX password.&lt;br /&gt;
&lt;br /&gt;
Then if you use OpenSSH:&lt;br /&gt;
 su -c &amp;quot;scp .ssh/id_rsa.pub &amp;lt;user&amp;gt;@&amp;lt;hostname_or_ip_address:/home/user/.ssh/authorized_keys2&amp;quot;&lt;br /&gt;
For dropbear:&lt;br /&gt;
 su -c &amp;quot;scp .ssh/id_rsa.pub &amp;lt;user&amp;gt;@&amp;lt;hostname_or_ip_address:/home/user/.ssh/authorized_keys2&amp;quot;&lt;br /&gt;
This will ask for your UNIX password to copy across the key.&lt;br /&gt;
&lt;br /&gt;
Now try:&lt;br /&gt;
 ssh &amp;lt;user&amp;gt;@&amp;lt;hostname_or_ip_address&amp;gt;&lt;br /&gt;
and you should just get a shell login. If usernames on local and remote machine match you can omit the [i]user@[/i] part.&lt;br /&gt;
&lt;br /&gt;
=== VPN, tunneling ===&lt;br /&gt;
Please see howto [http://www.undeadly.org/cgi?action=article&amp;amp;sid=20090903183235 Tunneling out of corporate networks (Part 1)].&lt;br /&gt;
&lt;br /&gt;
[[Category:Users]]&lt;br /&gt;
[[Category:Connectivity]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>94.193.104.142</name></author>
	</entry>
</feed>