Vervanger voor cmd.exe voor Windows NT/XP

Degene die de cmd.exe er weleens bijhalen op een Windows NT/XP bak, zullen gemerkt hebben dat de TAB-completion niet helemaal gaat zoals je dat gewend bent in Linux bijvoorbeeld.

Gelukkig is er een gratis open source vervanger: zie hier!

Deze kan behalve TAB-completion die wel handig is, ook history en aliases maken!

Stockholm : Update

Wow! Die Zweden snappen het echt!
Ik ben inmiddels weer terug op het vliegveld en ik heb net een gratis superglas Spa Rood gekregen van een Aardige Zweedse Dame.
Mijn vliegtuig gaat over drie kwartier.
Ik heb net bij de KLM ticketbalie mijn e-ticket omgeruild voor een instapkaart, dus ik hoefde niet in de rij te staan voor mijn kaartje.
Het is een groot voordeel als je met alleen handbaggage reist!
Zo.
Ik zit bij gate 11. Dat is, als je binnenkomt, meteen links. Handig!
En wat denk je?
Die Telia HomeRun (dit is het systeem waarmee ik in Sigtuna draadloos kon internetten) doet het ook hier gewoon nog!
Wat een pracht!
Ik hoop dat we dat in ons kleine Nederland ook nog ooit eens voor elkaar krijgen.

Ik had net een leuk gesprek met mijn taxichauffeur.
Hij vertelde mij over het grote aantal geadopteerde Zweedse kinderen (uit Korea, China, India, Colombia etc etc).
Er is momenteel een discussie gaande in Zweden welke kinderen het het makkelijkst hebben als ze door hun puberteit heen zijn.
Er zijn namelijk ook kinderen die uit de Baltische staten geadopteerd zijn en de taxichauffeur vertelde dat men zich momenteel afvraagt in Zweden of die kinderen het misschien makkelijker hebben om zich te aarden in Zweden.

Dat heb ik natuurlijk weersproken, omdat ik nooit het idee heb gehad dat mijn Koreaanse afkomst mijn integratie in Nederland op enigerleiwijze in de weg heeft gestaan.

Hum. Wel een grappige discussie, zo na het müesli-ontbijt in het hotel!
Ik ben trouwens nog even door Sigtuna getrokken, op zoek naar iets typisch Zweeds voor het Thuisfront.
En ik heb het gevonden! Er was een Zweedse supermarkt met een Hele Aardige Dame (ja, er zijn hier een hoop Aardige Dames!), die mij in perfect Engels vertelde dat het waarschijnlijk wel mogelijk was om met credit card te betalen.
Ze zei: “Dan proberen we het straks gewoon toch?” en toen dacht ik: “Wel, als het niet lukt, dan heb ik pech. En het Thuisfront ook”.
Ik heb namelijk drie dagen rondgetrokken in Zweden zonder één zweedse cent (of het Zweedse non-euro-equivalent, dan).
Maar ik had ze ook niet nodig, want het is gelukt met de credit card.

’t Is maar dat je het weet! Zou ook leuk zijn voor in Nederland, afrekenen met je credit card bij de Aldi.
Ja, we kunnen nog wat leren van die Zweden.

Sigtuna : Update

Hmmm! Dat is lekker!
Even tussendoor:
Als je een biertje geserveerd krijgt dat God Lager heet, dan moet het wel lekker zijn, toch?
Hmmmmm! Rare jongens, die Zweden! Maar ze weten wel wat bier is!

RDP over SSH

Due to the technical nature of the issue pointed out here and the lack of good information (or the lack of time to look for this information), I decided to post this article in english rather than dutch.
I hope the information is useful to you.

It’s working!
Today in Sweden I set up a secure SSH tunnel to use a remote Windows 2003 Terminal Server.
For this I used:
Windows 2003 Terminal Server (Standard)
Gentoo Linux
OpenSSH for Windows

The problem:
If you want to access your TS that’s on a LAN, you don’t want to open port 3389, because you don’t want your Terminal Server to be directly accessible from the Outside World.

Why this is a problem:
Windows’ out-of-the-box security is vulnerable to the so called man in the middle attack.
If somebody else wants to hack your system, there are many ways to let your remote users think they are talking to their Terminal Server, while, instead, they are talking to a party in the middle.
The logon information they provide to this unknown party will be passed on to the original terminal server and nobody will ever know.

What I did to circumvent this:
I opened port 22 on the LAN where my TS resides.
(this port was already open for SSH access to my Linux server).
I created an ordinairy user account, so my remote user can connect to the Linux server over SSH.
I used OpenSSH for Windows and I created an SSH keypair, uploaded the public key to the Linux server for Public Key Authentication and I created a batch file around this.
(Establish the connection, inform the user about it and keep the window open, so future information about problems with exchanging keys will remain visible!)

The result:
Step 1. The Remote User activates the batch file through a shortcut on his desktop.
This activates the SSH tunnel to the Linux server and it redirects his local port 3389 to port 3389 of the remote TS.
Step 2. As a second and last step the remote user starts the Terminal Server Client that connects to his localhost:3389, which will be redirected to the TS because of the tunnel established in step 1.

That’s it!
I’ve got this working under Windows 2000, but Windows XP Professional still needs a little bit of tweaking, because of Windows XP’s built-in ability to be a TS itself. (I don’t know about Windows XP Home. Anybody?)

I found some information about downloading the TS client to a seperate directory and activating the Compatibilty Mode for this .EXE (by default, the client won’t connect to localhost, but if you tell the .EXE to run in Windows 95 Compatibilty Mode, it will), but there is quite a gap between this theoretical knowledge and a situation that actually works.

Well, that’s it for today. I’m off.
Have a lot of fun TS’sing!

BTW: I;’m writing this article from the Sigtuna Stads Hotell in Sweden, the SSH; how appropriate!   🙂