Archive for December, 2008

public/private key authentication with PuTTY on fedora 10

Saturday, December 27th, 2008

First, check sshd is running on your server
service sshd status

This will say whether its running or not. If not running check whether its installed and the service is made to run on boot.

Once you do that, you need to generate a set of public and private keys.
Download puttygen from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Following steps will explain public/private key generation using puttygen and setting the key at the server.

1. Run PuttyGen.exe and click on the generate button. Make sure the selection is on SSH-2 RSA

1
2. You need to create some randomness by moving your mouse pointer in an uneven way till the progressbar gets completed.

2

3. Set a passphrase (optional) but would be better. Confirm passphrase in next field

3

4. Set a comment ( a useful one to recognize your key)

4

5. Save private key as .ppk for putty. You can have a public key by clicking save public key as well. Save this as .pub (public)

5

6. Copy the key for authorized keys file (as seen below)

6

Go to your server. Under the user’s home directory, create a .ssh folder (if it isn’t there). under it, open a file authorized_keys2 and paste the key what you copied above (step 6).

Test your login to the linux server using PuTTY. This time it should ask you for your passphrase.

You can turn off the keyboard-interactive authorization method in the file /etc/ssh/ssh_config. Its a good idea to do this, as your passphrase is generally a longer more complicated password. And the fact that your password gets echoed to the log.

This tutorial is another version of http://www.grahamlange.com/setting_up_ssh.html . Read it in case you need more explanations.
Thanks !

Virtualization tools

Tuesday, December 23rd, 2008

I was breaking my head installing Fedora core 10 on my microsoft virtual PC without any success. I went on searching more virtualization tools as I needed to get my fedora 10 get going…

Here are some info

1. Microsoft Virtual PC – Available for free from microsoft. Just go to microsoft.com , downloads section and download this one. You can create a virtual harddisk (a file on a host system and keep it anywhere). You can install a new OS in it.. (My Fedora core 10 couldn’t get installed.. thats where I am now !)

2. VMWare player – Another free tool available for download from http://www.vmware.com/download/eula/player_download.html . You can even get ready made virtual harddisks and use it (example fedora 9, 8 etc. You can download these and use straight away. No installation required)

3. Virtual Box – A GNU project . This is what I am gonna try now, kicking out microsoft virtual PC. Available free at http://www.virtualbox.org . I will post my experience soon.

Any other tools available which are good to be tried? Leave a feedback

Partition Magic 8 Error 510 – The version of the file system is not supported

Wednesday, December 17th, 2008

It all started with
Partition Magic 8 Error 510 – The version of the file system is not supported

I ended sleeping at 3:30 am on yet another day ! It isn’t new to me sleeping early in morning than at night.

I had two hard disks, one 80GB IDE and one 250GB SATA. The 80GB one was the old one which had the windows OS primary partition along with one extended partition with four logical drives. In addition to that I had a Linux partition on which I was having Fedora.

As the free space in my C drive (Win XP OS) was under 1 GB, I decided to resize the partitions and make some free space on C drive for windows to breath a bit more comfortable..

Thats where I ended up with – “Partition Magic 8 Error 510 – The version of the file system is not supported”

It took me a day’s time to research and find out that the linux partition in the same disk was causing this error. (My File systems were FAT32 and there should have been any problem for partition magic). So if you get such a message, first check whether you have any such partitions on your disk !!

Erazing the linux partitions did Partition Magic to work, but the prolems didnt get solved there !!

I was using grub as the bootloader. Once the linux partitions were removed, I wasn’t able to access my windows XP too !!! More problems

Luckily I had my laptop with me to do some more research on fixing the master boot record by using the windows “fixmbr” command for winXP.

My system was back to life…………..

Another day with short sleep from 3:30 …… But the experience and challenge to do things like this makes me to explore more and get into more troubles !!! :)