Thursday, November 30, 2006

Using OpenSSH with a ssh Proxy

Here is how you can set up ssh on your linux machines to automatically bounce from one host to the next.  I believe that using a modification of this could work to use a regular proxy but I have to research that.

Add this to ~/.ssh/config
Host internethost.com
ProxyCommand ssh -a -x sshrelay.com "nc internethost.com 22"

Where sshrelay.com is a ssh machine with better internet access to the remote host and internethost.com is the final destination.  Now I just have to type 'ssh internethost.com' to get all the way through to the final machine.  I can now forward X sessions, use scp, use FreeNX, with an easy configuration.

Wednesday, November 8, 2006

Reregister Windows Updates

I've had problems over the years with computers, more often servers, that do not want to update through Microsoft's Windows Update service.
net stop bits
net stop wuauserv
pause
rmdir /s %windir%\sdold
rename %windir%\SoftwareDistribution sdold
pause
net start wuauserv

Regsvr32 msxml3.dll
Regsvr32 wuapi.dll
Regsvr32 wuaueng.dll
Regsvr32 wucltui.dll
Regsvr32 wups.dll
Regsvr32 wuweb.dll
Regsvr32 qmgr.dll
Regsvr32 qmgrprxy.dll
Regsvr32 jscript.dll

echo Reset the proxy list
rem pause
proxycfg -d
proxycfg -u
net stop wuauserv
net start wuauserv

Here is a batch script that I wrote based off of an email from Microsoft Support. It has worked for me in every situation.