drapergeek

I hate DRM…

Posted by draper on Friday, September 4th, 2009

This topic has without a doubt been something that has been talked to death but unfortunately, I have to put in my two cents. Its simple, I hate DRM, its killing me.
Let me be clear, I’m a pirate, by the standards of the MPAA, RIAA & such I am a pirate because I want [...]

continue reading

Ruby for backing up

Posted by draper on Tuesday, May 26th, 2009

Backup, backup, backup! That’s the motto of the day and its good one to live by, for everyone. I personally know that I do not backup as much as I should but that’s mainly because I don’t believe that you can ever backup too much. For my personal computers I use a [...]

continue reading

Setting Rails on OS X Leopard

Posted by draper on Sunday, April 12th, 2009

Over the past year it seems like I’ve setup a new mac for daily usage at least 5 times and for the life of me I can’t remember why this has happened so much. I really haven’t purchased that many new computers(in fact only 1), but I remember this painstaking process quit vividly multiple [...]

continue reading

SSH Key Pairing

Posted by draper on Tuesday, November 4th, 2008

This is going to be a very short post. I’m going to tell you in simple terms how to setup ssh key-pairing for automatic login via ssh. In this example we will have two computers – a server and a workstation. We will be connecting from workstation to server remotely(or in the same network, it doesn’t matter). Follow these steps and you’ll be done in approx 5 min. This tutorial assumes that you know the ip address of the server and can remotely access it already via ssh.

1. On the workstation type the following command:

    ssh-keygen -t rsa

This will create two files in the ~/.ssh directory. One is .id_rsa and the other is .id_rsa.pub. I’m not going to cover what these files are, this is only a walk through.
2. Upload the id_rsa.pub file to server and put it in the ~/.ssh directory.
3. On server run the command

      cd .ssh
      touch authorized_keys
      cat id_rsa.pub >> authorized_keys

4. You’re done! Assuming everything was correct, you should be able to login to your remote server using the ssh command you should not be prompted for a password.

Posted in: featured, terminal fun.

Leave a Reply

    • Most Discussed