Posts Tagged mac

The day my Macbook Pro died on me

Damn… just when i was all geared up to start work, my mbp just chose to give me a black screen of death. I narrowed down the problem to my GPU when i tried connecting it to a monitor. F7 simply does not switch the screen. Luckily everything else was intact when i could hear music with Last.fm activated with quicksilver.

The saviour of the night is my somewhat old iMac, a firewire cable and migration assistant on the mac. My MBP user workspace was all up and running in two hours of full user account migration. Everything remained the same (even desktop image and Stickies notes). Phew!!

Bookmark and Share

Tags: , , ,

Changing PuTTy ppk file to OpenSSH format (on your mac)

I asked my system administrator to update the hosts.allow file on my server to allow my new IP Address. Recently, Singtel upgraded me to their 1000 Broadband on Mobile plan. The change in IP is quite expected. My sys admin updated the hosts.allow file but also went to change the ssh login scheme to the key-based authentication. It’s nice that he is hardening the box but i wasn’t sure how to do the ssh login now.

His reply to enquiry on the steps to the new login scheme came in the form of PuTTy keys(.ppk extension) and some steps. I am no longer a windows user so i had no choice but to try and do it Mac style. Quote from shinchi: It Just Works. Not so.

First i need to try and change the keys to openssh keys. I am using OpenSSH which is provided with Terminal.app. Problem is ppk work only on Putty. So i needed to see if Mac can run Putty. You can do that by installing Putty with MacPorts.

% sudo port install putty

Once you have PuTTy installed, PuTTy-gen is what you need to change the ppk keys to openssh.

% puttygen <putty key>.ppk -O private-openssh -o <your openssh key>.ssh

Now with my new openssh key, i can now login to my server with

% ssh <username>@<server ip or hostname> -i <my openssh key>.ssh

Well i got lazy to enter the -i all the time so i renamed the file to id_rsa. But i wonder if this is safe. =/

References:

Bookmark and Share

Tags: , , , , , ,