host key error

In case you get this error:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 06:ea:f1:f8:db:75:5c:0c:af:15:d7:99:2d:ef:08:2a. Please contact your system administrator. Add correct host key in /home/user/.ssh/known_hosts to get rid of this message. Offending key in /home/user/.ssh/known_hosts:4 RSA host key for domain.com has changed and you have requested strict checking. Host key verification failed.

The solution is:

ssh-keygen -R example.com (don't forget to change example.com for your domain)
 

ERROR: Error installing pg -v ‘0.16.0’ Failed to build gem native extension.

If you get the error

ERROR: Error installing pg:
ERROR: Failed to build gem native extension.

It’s because you probably have your pg_config on other location, in my case was located on /library/ you can use locate pg_config and add the option –with-pg-config=/path_of_pg_config.

If you get the error:

invalid option: –with-pg-config=/library/PostgreSQL…..

You must separate the options with — like this:

gem install pg -v ‘0.16.0’ — –with-pg-config=/path-of-pg_config

WSUS

All command line options for the wuauclt:

From a dump of the .exe (W2k3 R2 version ) we can extract the following options:
/DetectNow
/ReportNow
/RunHandlerComServer
/RunStoreAsComServer
/ShowSettingsDialog
/ResetAuthorization
/ResetEulas
/ShowWU
/ShowWindowsUpdate
/SelfUpdateManaged
/SelfUpdateUnmanaged
/UpdateNow
/ShowWUAutoScan
/ShowFeaturedUpdates
/ShowOptions
/ShowFeaturedOptInDialog
/DemoUI

Windows update service can be started from command line(CMD) using the below command.

net start wuauserv

It can be stopped from windows command line(CMD) using the below net stop command.

net stop wuauserv

To restart the wsus server you can run:

net stop WSUSService

and

net start WSUSService

SNMP on windows

To modify the traps or the access to the SNMP 
you can open the services console, and find SNMP 
services in case the Security tap it's lock you can modify 
the information on the registries:

HKLM\SOFTWARE\Policies\SNMP\Parameters\ValidCommunities
HKLM\SOFTWARE\Policies\SNMP\Parameters\PermittedManagers

To add a host on the accept snmp packets, 
create a new string key on the ValidCommunities 
regestry, after this restart the service, 
and everything will start working.