ssh: Remember each host’s settings

ssh: Remember each host’s settings

When you start using ssh to connect to other linux-based computers, you’re probably only going to a handful of machines. Easy enough to remember the username and hostname, but this won’t do when you’re working on 5 or more servers, especially if some offer ssh on a non-default port.


In this file, you can set all the options for each host, including the username, host or ip, port, even which key to use. Here’s an example:

#Contents of $HOME/.ssh/config
Host dev
User dev-deploy
Port 2222
IdentityFile ~/.ssh/id_rsa.deploy.key

Host prod
User prod555deploy
Port 5899

User admin123
Port 5899

It’s that easy! To use this config information, simply ssh:

ssh prod

Happy Computing!

WiFi Security

A lot of people have WiFi, or a wireless network. Sadly, many of the WiFi networks are completely open and anyone can log onto the internet and a home network without a password. This is a big security risk. There are plenty of options available, and you won’t have to buy anything extra.

The most common security for wireless routers is WEP security. This requires a 6 or 13 character password to access the wireless network. Without the password, you won’t be able to access it at all.

Almost every router has a web page built in that you can use to change the settings. To get to it, first you have to know the network address of the router; this is always the gateway address of any computer connected to the router. You can find it by click on Start->Run, then type ‘cmd’ and click OK. This should bring up what looks like a DOS box or command prompt. Type ‘ipconfig’ and press enter. Just type the ‘Default Gateway’ address into your web browser.

You should have a login page, if not, please leave a comment with the make & model of router and I’ll see what I can dig up about your router. If you’ve never ever seen this page before, then the factory password is probably still in place. Most of the time the username is ‘admin’ and the password is either ‘default’, ‘admin’, or should be left blank. Again, if none of these work, leave me a comment and I’ll look it up for you.

Once you are logged into the router, there should be a link labeled wireless, security, or setup; Click it. You should see a drop down box with WEP in it. Select WEP. You may have to save settings before you can enter a password, and if this is the case, make sure you are on a hard wired computer, not a wireless one. Make sure you choose 128-bit, not 64-bit which is inferior. Setup your password and save the changes.

You should be all set up. If none of these directions work, please leave a comment or google your make & model router for information on how to set it up. Most sites list step-by-step instructions.

Once you are secured, you won’t have people hoping on your network. Please note that this doesn’t mean that you wireless network is completely secure because everytime there’s new security, hundreds of people try to break it and many succeed.

If you live out in the country with no one around for 200 yards, you are safe enough to run the wireless without any security, but I advise you to set it up anyways, because you never know.