GP2xOpenSSH

From wiki.gp2x.org
GP2xOpenSSH
Download(s) (archive)
Developer(s) Bitcoder
Version 1
Status Released
Webpage Blog

More info here at the porter's blog.

Contents

Running

To run the server, browse to the "/mnt/sd/openssh" folder and run "./sshd_start.gpu". To stop the server, browse to the "/mnt/sd/openssh" folder and run "./sshd_stop.gpu". To run the client run the normal "ssh" command which can be found in "/mnt/sd/openssh/bin/ssh".

Alternative version

The latest version of openSSH was ported by someone else (the patch is a bit different), and can be found there : http://files.gp2x.fr/app-misc/openssh/ (patch, and used script are available on the SVN: http://ookoo.org/svn/gp2x/proj/app-misc/openssh/ ).

To install this version, just extract it at the root of the SD card. You can then run it directly. Server private keys will be generated by the start script if needed.

Building (for developers only)

In my environment I have a RedHat AS4 PC with the publick SDK for linux from GPH. I created a directory called "/mnt/sd" which I used to test the makefiles (normally the "make install" process).

Steps to build this package

1) extract OpenSSH 4.3p2 to some directory and run something similar to:

  # ./configure --host=arm-linux-gnu --libdir=/root/openssl-0.9.8b --with-ssl-dir=/root/openssl-0.9.8b --prefix=/mnt/sd/openssh

2) apply the patches provided in ./patches subfolder using:

  # 

3) run "make"
4) run "make install"

PS: as you saw, you need to have openssl library compiled and for that you do need to do something like:

	# tar zxvf openssl-0.9.8b.tar.gz; cd openssl-0.9.8b 
	# ./Configure  gcc
	# make

I did this in my root directory, you can do it wherever you'd like to.


Source Code

The patches are included in this package. For the original OpenSSH distribution please check their oficial web site availabe at http://www.openssh.com/portable.html or ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ .


Other stuff

Feel free to contact me for sugestions, critics and discussion of matters related with the GP2x. I use Greg Allen's nice utility gp2xole (https://webspace.utexas.edu/gallen/gp2xole/). Surelly I must forgot something but if so tell me and I will update this.

Personal tools