Copy SSH key to remote machine

Those of us who use secure shell (SSH) for logging in to remote machines, already know about key authentication, which is so much easier and sometimes more secure than password authentication.  We also know that in order to make it work you need to:

  • generate a pair of keys with ssh-keygen command
  • copy public key from the local machine to authorized_keys file on the remote machine
  • fix the permissions of the .ssh/ folder and authorized_keys file on the remote machine

And that’s just what we have been doing.  Or at least me.  Today, after approximately 10 years of using secure shell, I’ve learned that there is a ssh-copy-id command, which will automatically add your current public key to a remote machine’s authorized_keys file and arrange for correct permissions.   Wow!

Thanks to @commandlinefu and top 10 one-liners blog post.

Day in brief

  • Tried KDE 4 in Fedora Linux 12. Still as unusable as ever. #
  • Mitter looks like a really simple (but nice) Twitter app for Gnome. #
  • Mitter turned out to be too simplified. No way to close it or to switch between different streams. Trying out pino. Also sweet. :) #
  • I favorited a YouTube video — Konica Minolta chooses Google Apps http://youtu.be/ORHFwcRhgDY?a #
  • I favorited a YouTube video — The Joker's Magic/Pencil Trick (High Quality) http://youtu.be/2KX3OriDpgg?a #

Diggnation week

I officially call this week a Diggnation week.  Not that I have anything to do with Diggnation except being a fan, but you’ll get what I mean in just a second.  First, on Monday, while shopping at Carrefour supermarket, I came across Michelob lager bottles.  Michelob is an American brewery which used to sponsor several Diggnatino episodes, and Kevin and Alex even did a tour of the brewery.   Not a particularly great beer (here in Europe we are blessed with a variety of excellent beers), but not a bad one either.

Secondly, I was waiting for a fresh episode of Diggnation to come out and give me an atmospheric reason to chuck the first bottle and enjoy the second.  And what did Diggnation do?  They came up with probably their best live show episode ever.  Episode #246 in Austin, Texas.  It started off slowly, but it turned epic with Leo Laporte streaming a live TWiT show while crowd surfing (fast forward 40 minutes or so).  And then it went even crazier with Robert Rodrigez himself showing up at the show and doing a brief interview about an upcoming Predators movie.   In the words of Alex Albrecht: “What??!!!”

P.S.: If you watched a few episodes of Diggnation and haven’t got hooked, don’t worry.  I skipped quite a bit of Diggnation history.  Until I saw them with my own two eyes back in Amsterdam.  The guys are awesome!