Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

Wednesday, April 28, 2010

Windows Vista/7 445 Port Auto-bind

Hello again all,

If you all haven't noticed, I retitled the blog to be Musings of a Systems Admin. I figure I have enough to write about systems administration (rather than just server related admin) that I needed a place to write without starting a new blog. That being said, welcome to Musings of a Systems Admin!

I have recently set up our primary internal firewall to accept connections only through port 22 to force all remote connections to be initialized through an encrypted ssh tunnel... a good idea to start at least.
At the beginning, everything worked nicely connecting from my remote Linux (Ubuntu) machine. I then proceeded to connect a Windows Vista and a Windows 7 machine with putty. Unfortunately no dice with both.

Here's the exact problem. I created the tunnel for port 445 (localhost:445 destination:445) and connected. SSH connected fine but trying to access the localhost fileshare resulted in a timeout/network device could not be found.

I searched the internet for several hours trying to find a solution to the problem (or even any info as to why it wasn't working when it should) and finally stumbled upon a Microsoft technet forum talking about my exact issue.

The cause of the problem is that in Windows Vista and Windows 7 (as well as Windows XP SP3), Microsoft has auto-bound ports 445 and 139, even when file sharing services are turned off. This is why you can't create an ssh tunnel; because the port is already in use.

The solution. After reading and trying each suggested solution to no avail, I finally stumbled upon a link to a program someone coded to remedy the situation. To my knowledge this works on every operating system (though I've only tested it on Vista and 7).

Enjoy the fix everyone and happy tunneling!

Thursday, November 12, 2009

Blog Resurrection

Hello all,

A few months back I moved jobs. At my last job (as you all well know from this blog), I was a server administrator and .Net programmer on the side. At the new job, I was hired primarily as a web developer (PHP, JavaScript, Joomla dev, etc.). Naturally, because of the position change, I was no longer doing server administration and consequentially had nothing new to post on this blog.

That has changed now. The company I now work for didn't have much of a server infrastructure (a non-server edition mac that stored files), so they asked me to design and build a new one.

All that being said, I now have new content to post here. You Linux users will be happy to hear that I am now using Linux for some of our servers (virtual host and file server). To you Windows users, I will be building an Exchange server, terminal server, and a backup server (this might be done on Linux though). Most likely things in that list will be shifted around a bit in the next two or so weeks so please bare with me.

Some of the technologies I will be using in the upcoming posts will be
Windows Small Business Server 2008 (x64)
Ubuntu Server 9.10
VMWare Server 2
Microsoft Outlook Exchange
TightVNC
SSH

On one final note, I would like to put out a shameless plug for my other blog, Musings of a Web Developer. It covers the issues and fixes I have found throughout my adventures of coding websites. Essentially, it's the same thing as this blog but for web development rather than server administration.

I look forward to the upcoming comments about how depressing IT work can be *AHEM*... I, uh, I mean the joys of IT work. Who's kidding though. Everyone knows that we IT people love our jobs, especially the Dilbert comics that document our endeavors.

:P