How to disable ssh keys and log-in using password
I’m having a tricky situation. First I set-up a ssh access through keys and I forgot password for “keys”, and then I couldn’t connect. I tried to login using another computer, and I thought I would login using username and password. But this is what I’m getting- mylaptap@mylaptop870:~$ ssh -v -p XXXX XXX.XXX.XXX.XX OpenSSH_5.3p1 Debian-3ubuntu3, OpenSSL 0.9.8k 25 Mar 2009 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to XXX.XXX.XXX.XX [XXX.XXX.XXX.XX] [...]
Continue Reading »MySQL on Mac OS X Lion – can’t connect over internet
I’ve installed MySQL on OSX Lion, however I can’t connect to the MySQL server via phpMyAdmin (or Sequel Pro). I have a domain with 1and1, and created a sub domain (server.domain.com) and created an A record to point to my internet IP (where the server is) and that all works fine. However when trying to use Sequel Pro to connect to server.domain.com it gives me this error: MySQL said: Access denied for user ‘root’@'server.echobarrier.com’ (using [...]
Continue Reading »Ubuntu + AD; Failed to join domain: failed to set machine spn: Constraint violation
I’m attempting to join a Ubuntu 12.04 server to Active Directory. I installed samba, and kb5-user, created a machine account in AD, and did: > net ads testjoin Join is OK So far so good. Then I hit a problem: > sudo net join -U myuser Failed to join domain: failed to set machine spn: Constraint violation I do not have access to modify anything on the Active Directory server as I’m not admin. Is [...]
Continue Reading »When is necessary integrate Apache httpd with apache tomcat (mod_jk)?
Apache sites, recommend the integration of httpd and tomcat(mod_jk). The first for static and the second for dynamic content. What about the case that the entire page is dynamic. Does it still make sense to integrate both servers? What would be the advantages? Asked by Jhonnytunes It allows you to use the other features of HTTPd (e.g. rewriting via mod_rewrite). It allows you to run Tomcat as non-root, preventing privilege violations. Answered by Ignacio Vazquez-Abrams [...]
Continue Reading »Add X-Forwarder-For HTTP header to HAProxy
I use HAProxy 1.3.26 on my CentOS 5.8 to proxy all requests to a dedicated server. I use HAProxy just to proxy HTTP and HTTPS to a single server, so no load balancing. My haproxy.cfg is rather simple: global log 127.0.0.1 local0 log 127.0.0.1 local1 notice maxconn 4096 user haproxy group haproxy daemondefaults log global option dontlognull option httpclose option forwardfor clitimeout 60000 srvtimeout 60000 contimeout 5000 retries 3 option redispatchlisten http 192.168.0.1:80 mode tcp [...]
Continue Reading »Will my DNS secondaries work properly if I only permit udp/53 traffic from the Internet?
I run a “hidden primary master” DNS setup on BIND, so only secondaries are visible to the outside world. The firewall currently permits traffic from the Internet to both udp/53 and tcp/53 on the secondaries and everything seems to work fine. Each day however, I see a load of “refused notify from non-master” log entries from external addresses that have nothing to do with me. I understand what the log entries are telling me there, [...]
Continue Reading »Puppet package provider for modules from puppetforge?
Using puppet, you can install ‘packages’ on your system using a variety of ‘providers’. There are built in providers for yum, apt, gems, etc. Is there a ‘puppet-module’ package provider or similar? In order to re-use puppet modules from http://forge.puppetlabs.com/, I am downloading the release, unzipping it into my own source repository, and adding it to my sources. This isn’t ideal – I’d like to be able to re-use a module without copying it. Is [...]
Continue Reading »Trouble extending disk space on CentOS 5 VM
So I am trying to extend the disk space on a VM of Centos5 running cPanel. Apparently my boss says this is easy but invariably I seem to have found a problem and cant seem to get it to play ball. The disk used to be 15GB and is now 200GB (changed via vSphere) and I can now see that the size of /dev/sda has Disk /dev/sda: 214.7 GB, 214748364800 bytes 255 heads, 63 sectors/track, [...]
Continue Reading »How to join two Cisco SG200 switches together
I would like to extend a VLAN on Switch 1, to Switch 2, so could I simply use a crossover cable or a normal cat52/rj45 cable to connect a port on each switch together and then assign the two connected ports to the same VLAN (ID22)?# P.S These switches are not connected together at all at the moment – are there any other connections for this I am missing? Asked by James It’s a little [...]
Continue Reading »Apache httpd.conf Only use SSL for subdomain and give 404 for other https URLs
I have a current configuration for my website mail client: NameVirtualHost *:443 <VirtualHost *:443> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/ca.crt SSLCertificateKeyFile /etc/pki/tls/private/ca.key <Directory /var/www/mailclient> AllowOverride All </Directory> DocumentRoot /var/www/mailclient ServerName mail.* ServerAlias mail.* </VirtualHost> When i try to reach https:// mail.domain1.com or https:// mail.domain2.com this works fine. But when i try to reach https:// domain1.com or https:// sub.domain1.com i still see the web mail client, but i dont want to see anything but a 404 or something [...]
Continue Reading »


