SSH Public key not working on one server

Posted on March 25th, 2008 by Luke Sheldrick.
Categories: IT / Tech.
Tags: , , .

25 03 2008

Yesterday, I set out to enable key authentication on all of my Linux servers. Once I had exported my private and public keys from my putty key file, it was a pretty simple process.

Bar, one server. IT worked flawlessly on all but on of my servers. This was a mirror of a Fedora server I had at home, so decided to copy all of my .ssh and /etc/ssh folder across, hoping a quick restart of SSHD would fix the job.

Well spent hours last night thinking what could it be. AH, I remembered ssh-add was fussy about the folders permissions, of where your key was kept. Apprarnetly ssh is the same about your .ssh folder. A quick google on this confirmed this fact, and issuing the below commands fixed all :)

Typically this is caused by the file permissions on $HOME, $HOME/.ssh or $HOME/.ssh/authorized_keys being more permissive than sshd allows by default.

In this case, it can be solved by executing the following on the server.

$ chmod go-w $HOME $HOME/.ssh
$ chmod 600 $HOME/.ssh/authorized_keys


iPhone passwd continued

Posted on March 5th, 2008 by Luke Sheldrick.
Categories: IT / Tech.
Tags: , , .

5 03 2008

If you do want to change your iPhone password I can confirm on 1.1.3/1.1.4 it does work using the below guide




Posted on March 2nd, 2008 by Luke Sheldrick.
Categories: IT / Tech.
Tags: , , , .

2 03 2008

So I gave in and got an iPhone this week.. so far am pretty impressed so far. Love the fact that I have my music and films on me all the time, saves being bored on the train 😀

Didn’t opt to go for the likes of o2, and it was far too easy to unlock it, using the ziPhone  one click activates, unlocks and activates, it was too easy.

Then I started to play about with it, enabling SSH and the like. Then made the mistake of changing the password. Well apparently using firmware 1.1.3/4 this is a big no no. This means that when you reboot the phone, it constant reboots its gui, i.e. springboard. To fix this it’s quite simple, restore master.passwd and passwd both in /etc however this assumes you made a backup. I didn’t and couldn’t find a copy on the net. Tried decompile the ipsw files, but gave up as couldn’t get the dmg’s to mount on the windows box I was using at the time.

Anyways restored to 1.1.4 this time, and ran ziphone.

I now have a backup of master.passwd and passwd if anyone needs a copy give me a shout.


1 of 11