Regain access to EC2 instance, after a botched sshd_config.

I just made a big mistake. Made a change to the sshd_config on a production server that locked me out. My heart skipped a beat when I lost connection and was presented with

brandons_mbp:~ bleon$ ssh domain

ssh: connect to host domain port 22: Connection refused

This is on one of my clients web servers. But I was able to revert the changes. It was a little complicated but it worked.

I knew the exact lines that needed to be removed just getting to them without connecting to the server was the trick. This is why running on EC2 saved me. I stopped the running instance for the web server and disconnected the volume from the instance.

I fired up a temporary CentOS instance (any *nix instance should work, CentOS just happens to be my favorite) and attached the volume to the new instance as a secondary disk. This allowed me to SSH into the new instance and browse the filesystem of the server I locked myself out of. Now using vi or your favorite editor edit the sshd_config file, shutdown the server, disconnect the volume and re attache it to your web-server instance.

I started the webserver instance and crossed my fingers, and when I tried to SSH in again I was successfull.

It would also be a good idea to create a snapshot of your volume before attempting any of this to be safe. And to test any changes your going to make that could potentially lock you out on a system you have physical access to.

No tips yet.
Be the first to tip!

Like this post? Tip with bitcoin!

16YU8gK5RPJNQdVeyAvEwWg6ec8pZhusuV

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.

WordPress XSS Vulnerability

If you’re a WordPress blogger be sure to update to the latest 3.0.4 build as soon as possible, While no new features have been fixed a major security hole has been patched.
Basicly 3.0.3 allows users to insert comments with malicious code, the 3.0.3 WordPress only sanitizes lowercase HTML allowing a malicious user to pass bad code to obtain cookies of a logged in user.

For now if your still running 3.0.3 check all pending and new comments for base 64 code or JavaScript links and if you see some delete the comment right away.

See http://wordpress.org/ for the complete announcement from the wordpress team.

No tips yet.
Be the first to tip!

Like this post? Tip with bitcoin!

1FRxrBB6wQHQGRLHWZ3xjhJY1XT9WimVxw

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.

Wikipedia Down?!? [Update]

I’ve been trying to access some information on Wikipedia the last few hours, but the online public encyclopedia had been unavailable for a while, and I’m not the only one having trouble accessing the site, just go do a quick search on twitter to see the world tweeting about the downtime.

As far as I know there is no official way to check server status but will continue to investigate what is happening and post any new information I manage to find.

Update: Wikipedia is back online, Thanks to the Update from John who tracked down the answer on Yahoo! Answers, it appears there was a power outage in there Florida data center.

No tips yet.
Be the first to tip!

Like this post? Tip with bitcoin!

19aeXfSHsgU3QJ8UrkMcyeHzMQXL2Dwz7X

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.

Rumor: Apple to buy Twitter?

First it looked like Google was interested in purchasing twitter. Now according to TechCrunch Apple is showing an interest in the service. Sources state Apple wants to announce the purchase during WWDC in June, if the deal goes through the price-tag is going to be $700 Million.

twitter

so far even though Twitter is incredibly popular it has not developed a way to generate a profit and is running off venture capital. Lets hope should Apple actually make the purchase, nothing changes.

No tips yet.
Be the first to tip!

Like this post? Tip with bitcoin!

12x74gj8SKEAPPpjXCZd1MVZLxVAUq6wu6

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.

Social Media And Business

What is “Social Media” and why is it important to your business? It’s important to use every edge you can. Social Media can separate you from your competitor. In a good way.  Many people interact online on a daily basis. Why not join them and start interacting with them? Show them what your business has to offer them.

Wikipedia defines Social media as:

“Social media is information content created by people using highly accessible and scalable publishing technologies. At its most basic sense, social media is a shift in how people discover, read and share news, information and content. It’s a fusion of sociology and technology, transforming monologue (one to many) into dialog (many to many) and is the democratization of information, transforming people from content readers into publishers. Social media has become extremely popular because it allows people to connect in the online world to form relationships for personal and business. Businesses also refer to social media as user-generated content (UGC) or consumer-generated media (CGM).”

From a business owner’s point of view the most important things to focus on while using social media are…

  • Quality content – publishing useful information lends credibility to your business in the eyes of readers
  • Giving valuable information freely – by giving away information worth selling customers feel the need to reciprocate and a certain percentage then buy something from you
  • Creates two-way communication with prospects and customers – You can actually engage in two way conversations with customers personalizing your relationship with them

Quality – Among other things, your online presence needs to look professional and well-designed. Ugly templated sites won’t do anymore.  Keep in mind, well-designed does not mean you need to go spend thousands of dollars on a flash-enabled site. Although I used to love watching flash intros, I recommend staying away from flash now. I focus on building sites that look good without having to install extra plugins. Just make sure your site looks like you spent a reasonable amount of time on it and that it represents your company in a positive manner appropriate for your type of business.

And stay away from plain white backgrounds. They typically appear too bright making it difficult to read.

Check out this article at http://www.smashingmagazine.com which compares an up-to-date well-designed website vs. one that looks like it was designed 10 years ago.

Give Valuable information…and keep the information coming. If you keep your site static and don’t add updated information regularly, what reason do your visitors have to keep coming back? Even if it’s just a matter of keeping a photo gallery updated. You can accomplish this by displaying a flickr photo stream on your website. Set up a blog and keep new information flowing about products or services you offer. This keeps users visiting your site. Once they read something about a service you offer or a product you sell, they’ll be more willing to purchase it from the person they learned about it from. That can be you, or it can be your competition.

Create two-way conversations with potential customers and current customers too. Keep your potential customers informed about the services you offer and products you sell. If you post a few times a day on Twitter, Facebook, or MySpace, people that otherwise might never hear about you and your business get exposed to your message. Or you may see someone asking questions about a need one of the products would be perfect for. This opens the opportunity for you to give them as much information as you can.

Most importantly, this is often two-way communication so you not only get to talk, you get to listen to your potential customers as well.

What should you be listening for? Here are a few possibilities…

  1. What do your customers think?
  2. What are customers in your niche saying? 
  3. What are your customers actually doing?
  4. What are they spending their money on?
  5. How do you compare with others in your industry?

Where you should you start?

Sign up for and account at http://twitter.com/ and do some searches at http://search.twitter.com for users interested in the products or services you offer. Start following people that you find interesting and ones that seem involved you activities related to what you offer. Don’t spam them with direct messages. Twitter is more about offering interesting comments and adding value to the conversation. You can post links to interesting articles you’ve added to your blog or website.

Add your profile to Linkedin if you offer professional services of any kind. It’s a great place to connect to people that need what you have to offer.

Next set up a flickr account and start uploading pictures, making sure to let everyone know via twitter when you upload new images. Next start expanding your company’s website to embrace social network technology.

I’ll delve deeper into Social Media in future posts.

No tips yet.
Be the first to tip!

Like this post? Tip with bitcoin!

1MFwGFijtfo4Y2We61ZWNFJRpWGLEpX4pP

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.