Log in

View Full Version : Free SSH Install Script/Package


IronGeek
03-06-2003, 03:10 AM
Hi All,
Rainer Keruchel has ported some wonderful Unix apps to Windows CE, including this port of SSH and the other binaries in this package. His software can be found at http://www.rainer-keuchel.de/software.html if you want to download it directly. Unfortunately the documentation can be a bit hard to follow for some so I’ve provided this package to help you to more easily install his Opensource SSH client on your Pocket PC. I’ve set things up for what I think is the best viewing (Rows, Cols and font), but if you don’t like it you can edit the install script.

Download: http://homepages.ius.edu/adrian/PPCsshInstall.zip

To Install:

Step 1: Copy the “unix” directory to the root of your Pocket PC.
Step 2: Run “Run me to set up registry.bat” to set up the registry.


That’s it. Beats paying for a SSH Client.

bdegroodt
03-06-2003, 03:21 AM
Pretty cool! I was just about to pay up for an SSH client too. Thanks!

IronGeek
03-06-2003, 03:29 AM
I've just changed the script a little. I just set the TERM variable so folks can run "pine" and other more complicated programs.

orangehat
03-06-2003, 04:01 AM
Pine is good. I'm a mutt person myself.

rix
03-06-2003, 07:54 PM
Anyone tried putting the unix dir in the root of a storage card instead?

I'd rather not eat 2.85 MB of main mem if I don't have to. :)

IronGeek
03-06-2003, 07:56 PM
Just put the "unix" folder where you want and then edit the BAT file to put the correct paths in the registry.

Chas
04-06-2003, 04:47 AM
I am new to pocket pc. How do I run the bat file. Tapping on it to open and it says there is not associated program. Can't file the equivalent of dos prompt. What am I missing
Thanks

Sooner Al
04-06-2003, 07:19 PM
Text deleted

Chas
04-07-2003, 01:09 PM
You learn something new everyday.

Thans again.

Fitch
05-11-2003, 07:41 PM
Awesome! Thanks for posting this.

I had to do a wireless install, so I used PHM Registry Editor (http://www.phm.lu/products/PocketPC/RegEdit/) to add the keys manually. (HKLM = HKEY_LOCAL_MACHINE)

pcause
05-12-2003, 10:07 PM
He's ported a whole lot more than SSH. I put Apache on my CF card, loaded the perl port from Sourceforge for CE that uses his libs, and got YABB, a BBS system that is equivalent to these forums running on my Ipaq 38xx.

Why have a BBS on my Ipaq? Becuase I can.

shane
05-20-2003, 06:45 PM
I've copied the unix folder over and I ran the .bat file, but when I click on the ssh.exe file with my IPAQ it ask for my hostname then it ask for my username, then it quits. I get a login error, but I never get the chance to enter a password. How do I run the software or what is the syntax that I use to login? Any help is appreciated.

Thanks,

Shane

IronGeek
05-20-2003, 07:45 PM
Have you tried to SSH into more than one box?

shane
05-20-2003, 08:19 PM
I don't have any other boxes to try to login to. Is that what I'm supposted to do? And should it prompt me for a password afterwards?

Thanks,

Shane

IronGeek
05-20-2003, 08:24 PM
Sorry guy, I don't know what to tell you. I just reinstalled it on my Axim and it seems to work, can you still ssh to your box from a PC?

bigdriver4u
06-17-2003, 07:27 PM
Just put the "unix" folder where you want and then edit the BAT file to put the correct paths in the registry.


What was the outcome of storing the unix folder on the storage card? I am traveling down the ssh path and came across this thread. Are there any updated steps that i should know about before installing ssh on my ipaq 3955? Have you since determined a better ssh client is available and have you tested it yet? Where is the unix folder located to copy? Thanks for your advanced help.

IronGeek
06-17-2003, 07:49 PM
Nope, I have not checked for and updated version and you may beable to run it from an SD card, put you would have to change the path in the bat file.

Sooner Al
06-18-2003, 12:31 AM
Text deleted

Deeter
08-04-2003, 09:28 PM
More BAT file questions:

I'm new to working with WinCE at this level, so bear with me. I'd like to store the program on my SD card, so if I edit the lines in the batch file that point to \Unix would I then change it to \SD Card\Unix?

Also the line in the BAT file that reads:

cereg -k HKLM\Environment -n COMPUTERNAME -v Axim

Should the computer name be changed to reflect the device name we've given our individual PDAs?

Sorry to ask so many noobielicious questions, but this definitely sounds like a program worth having. Thanks!

nosmohtac
08-04-2003, 09:37 PM
I don't know much about Unix or Linux, but am very curious.
What exactly is SSH?

IronGeek
08-04-2003, 09:42 PM
You should be able to change the paths to whatever you like. The setting for computer name should not matter, I just happen to have an Axim. SSH serves basically the same function as telnet, but SSH uses encryption to help keep your session from being easily sniffed. .

Deeter
08-04-2003, 10:04 PM
I guess what I'm asking is, is \SD Card\Unix the right syntax for referencing the Unix directory if it was stored on the SD Card. :?:

IronGeek
08-04-2003, 10:05 PM
It should be, just try it and find out.

gry
08-07-2003, 04:46 AM
Irongeek-
Thanks man!

I got it working off my SD card also, no problem.

Is there any way to get the screen column width to be 80 wide or get a scroll bar? I noticed when I was doing file listings that stuff was off the screen and no scroll bar.

I tried moding the bat file width setting and it kept crapping out. Before I got in no problem, so I now the width setting was causing the program to exit.

Any ideas? I know you didn't write the code, so I'm not complaining. I'm glad you made it significantly easier to install and work.

brntcrsp
08-07-2003, 04:52 AM
Pine is good. I'm a mutt person myself.
I like my nano, but that's a whole other debate :twisted:

henriksonj
08-12-2003, 06:29 PM
Hi,
installed this on my axim, running windows pocket pc 3.0.
But when I try to connect I simply get an error message and no connection.. do I need to edit the passwd file or services file?

thanks!!
John H.

ppcuser
09-05-2003, 03:44 PM
Be careful how you extract the zip files to make sure the directory structure stays intack.

cesarfong
09-10-2003, 06:00 PM
the ssh window is bigger than my screen in my 5455 (runnig wm2003) any help to fix de window in my screen?

Thanks in advanced

César

oldschooljedi
09-13-2003, 03:48 AM
I know this is more of a Handheld PC thing, but I used your instructions and registry script to put a package together for the mips processor (MobilePro, etc...) for Wince 2.11 to 3 (handheld PC)
http://www.johnbeck.org/ce/



Hi All,
Rainer Keruchel has ported some wonderful Unix apps to Windows CE, including this port of SSH and the other binaries in this package. His software can be found at http://www.rainer-keuchel.de/software.html if you want to download it directly. Unfortunately the documentation can be a bit hard to follow for some so I’ve provided this package to help you to more easily install his Opensource SSH client on your Pocket PC. I’ve set things up for what I think is the best viewing (Rows, Cols and font), but if you don’t like it you can edit the install script.

Download: http://homepages.ius.edu/adrian/PPCsshInstall.zip

To Install:

Step 1: Copy the “unix” directory to the root of your Pocket PC.
Step 2: Run “Run me to set up registry.bat” to set up the registry.


That’s it. Beats paying for a SSH Client.

keatoh
09-25-2003, 11:36 PM
hi cesarfong,
i have the same problem too. did you find the fix yet?

hi everyone,
seems like ssh.exe is the only thing that's working. scp, sftp, ssh-keygen, and ssh-keyscan don't really do anything when i tap on it. is this me or it's normal for ipaq user (specifically 5455 running wm2003)?

1 more thing, after every ssh session, i get these *.txt files created outsite my "unix" folder. right now, i just delete them. is there a way to put them in a specific folder like "\unix\trash_txt"?

thanks guys.

amac
09-26-2003, 09:10 AM
Hi,
change the values of
cereg -k HKLM\Environment -n ROWS -v 20
cereg -k HKLM\Environment -n COLS -v 45
in the "Run me to set up registry.bat" File or direktly in the Registry to change the Windowsize.

Axel Schubert

keatoh
09-26-2003, 05:49 PM
thanks amac. it works better now.

how about:

hi everyone,
seems like ssh.exe is the only thing that's working. scp, sftp, ssh-keygen, and ssh-keyscan don't really do anything when i tap on it. is this me or it's normal for ipaq user (specifically 5455 running wm2003)?

1 more thing, after every ssh session, i get these *.txt files (ssh-stderr.txt, ssh-stdin.txt, ssh-stdout.txt) created outsite my "unix" folder. right now, i just delete them. is there a way to put them in a specific folder like "\unix\trash_txt"?


anyone?

thanks again.

trev
09-27-2003, 02:41 PM
I installed the software and got it running the first time. However, I use vim for editing and I have three problems.

First, the arrow keys don't work (they did on the command line).
Second, my iPAQ 2215 doesn't have an ESC key or an INS key.
Third, my typing isn't showing on the screen, although the cursor is moving.

Does anyone have any suggestions? Thanks!

silentmuse
09-28-2003, 08:56 AM
Ok, this may be obvious to everyone, but not to me, so time for a dumb question.

How do I properly deal with actually inputting into this thing? Unix dir is installed, registry is set. If I run ssh.exe via my file explorer (Total Commander) I can use the input icons from TC to generate input. However, I created a shortcut to ssh.exe in my start menu. If I run that directly, the ssh window comes up but I have no input method available to me.

It appears that if I run any app at all (such as Notes, etc.) I can task switch and use it's input to work with ssh.

Very strange. What is it I'm missing here?

barrulus
09-30-2003, 03:06 PM
I am having the same problem...
Have created the start menu item (does not force a connection, only uses existing connection) and can run the app no problem.

Or, with no insurmountable problems...
I am still unable to input data until I open another app and come back to ssh.

Also, the only thing I can do is create a shortcut to the ssh app, this make managing multiple sessions impossible, as I simply start a new session every time I tap on the ssh shortcut.

Also, how does one enable screen wrapping and line scrolling?
I am happy to allow the lines to roll off the top of the screen, keeping none if it cached, but I would prefer it if my view followed that of the last line, and did not stay focussed on the first line...

(Running Pocket PC 2002 on Q-Tek 1010)

barrulus
09-30-2003, 03:52 PM
I am also a vi/vim user and was a bit perplexed at not being able to use the ESC key
(pretty much everything else has a workaround)

Saw the message earlier and thought I would post that tapping SHIFT>I "INSERT" works, SHIFT>D "delete line from here" works, SHIFT>R "REPLACE" works, SHIFT>Z>SHIFT>Z "writequit" works.

I was able to edit my file, make changes to a line, then tap CTRL>C and get out of editor mode, I could get back into editor mode no problem, and :wq saved my doc as normal (as did shiftZZ)

B

dennyt
10-13-2003, 11:19 PM
ssh-keygen immediately quits and SSH quits after I enter the username with an error message that says ...
Couldn't get password entry for currrent user (0)

Any idea? I see that the unix/etc/passwd file has an entry for root, but I don't actually log in to my pocket pc using a username.

Thanks!
-Tom

barrulus
10-14-2003, 08:33 AM
The user root (0) entry in the passwd file is for the local unix file system.
The SSH client should ask you for: -
Host: [input text]
User: [input text]
<CR>

It then has a "Please wait..." display.
A dialogue box then jumps up asking for your password.

If this rejects, then copy your remote machine's passwd file entry into the passwd file on PPC.

(Hint, I had similar problems, but installed everything into the wrong dir, make sure that the /unix dir is in the root of the PPC)

Chemik
11-05-2003, 09:11 PM
I have experienced the same problem (ssh.exe exiting immediately after entering username). I have solved it by adding quotation-marks to the paths in the bat file, as in this example:

cereg -k HKLM\Environment -n HOME -v "\SD Card\Pocket SSH"

Hope this helps you

mmurdock
11-07-2003, 07:54 AM
Has anyone figured out how to forward a port using this?

Mat

Skyrunner84
11-07-2003, 08:39 PM
I got this app running on my new Toshiba 2032 phone running Pocket PC 2002. Everything was working fine untill I took the unix dir off. Oops!!! So put it back on but now I don't have the \unix\.ssh dir (this is the dir that has the database of known servers). Now every time I try to log onto my server it asks me if I am sure I want to log on then it gives me an error saying that it could not add the server to the list of known servers. I tried to create the dir by hand but windoz thinks the .ssh name is a file extension. Can anyone help with this matter???


Update!!! Nevermind. While I was typing this I got an idea. I loged onto my server from my PC I created the .ssh dir and transfered it using ftp to my PPC. When I loged onto the server from my PPC it created the known servers file and all is right in the land of ssh again.

Now is there anyway of making it remember the server name and my user name, so I dont have to type it every time I log on??? Something like the profiles in the PC version. Thanks alot for any help.

nio
11-11-2003, 12:20 AM
Hi everyone...
I´ve a problem with the .bat file, because i cannot execute this file, because my system tell me that no recognise this kind of file.
I´ve a ipaq 2210 and i don´t know how i make it...
sorry for this question, but i am newbie in the pocket pc :lol:
If i execute de ssh.exe, when i put the username and then press enter the window disappear and nothing else.
Thank you for all

mmurdock
11-11-2003, 01:39 AM
You run the .bat file on your host machine with your ppc connected.

Mat

HaPagan
01-06-2006, 04:36 PM
I have an iPaq 3970 and i want to install SSH but the link referred to in the first page of the topic is dead. Can someone give me a valid link ?

Thanks in advance!

HaPagan
01-07-2006, 12:33 PM
I found the valid link .

http://www.irongeek.com/i.php?page=security/ppcssh

Have anyone managed to transfer files through sftp ? I get a "command not found" error when i use "get <filename>".