Dmitriy Savchenko

Don't panic

Tip: Ssh-copy-id Alternative

This one snippet also start to appear in my search results more often.

1
cat ~/.ssh/id_rsa.pub | ssh -o PubkeyAuthentication=no user@192.168.33.10 "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"

The key part of this one liner is:

1
-o PubkeyAuthentication=no

You can’t specify it for ssh-copy-id and without it you get this error

1
$ Received disconnect from host: 2: Too many authentication failures for user

Also other solutions can be found here

Tip: Delete Git Remote Tag

For a quite long period of time I’ve been using this method to delete remote tag in git repository:

  • Find myself in a situation when you totally need to remove that pushed tag
  • Feel frustrated, because even after doing this more than 10 times I still fail to remember the command
  • Google the command
  • Click on that purple link - first in search results for “git delete remote tag”
  • Look at the command and feel embarrassed again
  • Copy paste the command to the terminal window.

Today must admit that I have the problem and the first step to overcome it - add link to solution to this blog:

1
2
git tag -d 12345
git push origin :refs/tags/12345

source

VirtualBox Guest Additions Reinstall

Software development obviously needs some environment. After some time spent working as developer i’ve got strong filling, that this envirement should be separated from my desktop. At least vitrually.

Simple Static Blog Using Octopress

Comes to end year of owning my first hosting. I win it in New Year contest from Logol on habrahabr.ru. Nice hosting, but paying even small amount of money for the thing you use one or two times a month (games twitter and work take almost all my time) is inpractical.