A glass case of thoughts | Brain munch illustrated

Who is this post for?

This post is for anyone who wants a step by step guide to accomplish any of the following

  1. Make a SVN client like tortoise svn remember password
  2. Make linux server remember your password when logging through putty

Tools you need:

  • Putty
  • Puttygen

What you need to do:

  1. Using putty – login to linux server. change directory to ~/.ssh/ by typing following command
  2. cd ~/.ssh
  3. Type command
    ssh-keygen -b 1024 -t dsa

    and press enter. Do not enter a passphrase. Hit enter when prompted for one. Same for the filename. default filename = id_dsa and id_dsa.pub. id_dsa is the private key file and id_dsa.pub is the public key file.

  4. type command
    cat ~/.ssh/id_dsa.pub

    Copy the output to the clipboard by selecting the output by mouse.

  5. Type command
    vi ~/.ssh/authorized_keys

    Hit i to enter Insert mode and then paste your public key (if there is already a key in this file, move to the bottom before pasting). Hit the ESC key to leave Insert mode and type :wq and hit enter to save and exit vi editor.

  6. Using ftp download your key files – both private and public

  7. In order to use the private key we get from the server, we have to convert it to a putty format. This is because the private key file format is not specified by some standard body. We can accomplish this using puttygen. Open Puttygen

  8. In the tree structure on left, choose conversion -> import key -> choose the private key file downloaded from ftp

  9. Choose to save private key. Choose path and save the file as anything.ppk

  10. Run Putty. Specify parameters
    • Session->HostName: Hostname or IP Adress of your server
    • Session->Protocol: SSH
    • Session->Saved Sessions: MyConnection
    • SSH->Prefered SSH Protocol version: 2
    • SSH->Auth->Private Key file for auth: $PATH$mykey.PKK (replace $PATH$ with real path to the mykey.PKK file)
  11. Go back to Session tab and hit “save” button. You will see “MyConnection” in the list of available connections.

  12. Next click “open” and you should see a telnet login prompt. Use “myuser” as username (without double quotes of course) and if everything is OK, you don’t have to provide a password to your system. If the system still requires a password, something went wrong.

  13. Now that linux server and putty manage to remember your password, you need an application client to use it. In this case it is SVN client e.g. tortoise svn. Go to TortoiseSVN->RepoBrowser and specify a URL like this:
    svn+ssh://myuser@MyConnection/usr/local/repos

    …where MyConnection is the putty session name and /usr/local/repos is my svn repository on linux server

And you are done …

Related posts

  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

, , , , , , , , , , , , , , , , SVN Hide

This post explains how to map domain names with IIS web site

Assumptions:

  • We have IIS hosted on a server with static IP and internet access (:|)
  • We own a public domain name (:|) which is to be mapped (:|)
  • IIS version 5.1 and above

For demo, I am assuming following values

  • server IP address : 222.222.222.222
  • public domain name to be mapped: map.jyotsna.com

Please note that these values are for demostration purpose only. I, in no way, own these.

To do:

  1. Add and ‘A’ record to your DNS settings with value = IP of server. So my “A” record for jyotsna.com has value = 222.222.222.222
  2. Create a web site in IIS – is needed. For demostration, I am going to use “Default Web Site”
  3. Right click the concerned web site -> properties. In the “Web Site” tab, click on “Advanced” button.

    website

  4. In “Multiple identities for this Web Site” section, click “Add” button.

    Advanced

  5. You now need to mention three values
    Add
    • IP Address – this is IP address of the server. In my case it will be 222.222.222.222
    • TCP port – I want this website to be available on map.jyotsna.com irrespective of the actual IIS port assigned to “Default web site”. Hence I am going to specify 80. If I wanted the site to be available on map.jyotsna.com:666, I would have specified 666 as this value.
    • Host Header Name – map.jyotsna.com
  6. Click on OK/ Apply to close all windows. There is NO NEED to restart IIS to reflect the changes.

Related articles:

  1. Setting default virtual directory for your website
  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

, , , IIS Hide

Task at hand:
Copy a directory from within one SVN repository to another

Assumptions:
- Tortoise SVN as SVN client
- The two SVN repositories – being copied from and being copied to already exist

Steps:
1. Right click SVN bound directory that you with to copy. Choose tortoise SVN -> Export.
2. Specify path to an empty folder e.g. “c:\to_add”. Click on OK.
3. Now you have the SVN bound directory contents in this new directory “to_add”.
4. Right click on “to_add” and choose tortoise svn -> add
5. Specify path to the new repository and location inside it.
6. Right click on “to_add” and choose SVN Commit to make your changes permanent.

Voila !! You are done.

  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

, , , , SVN Hide

The belief of not trusting everybody very easily seems untrustworthy sometimes.

  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

No tags Brain Munch Hide

Cannot be generalized; but seems to apply to majority.

Male ego is an excuse for taking those things for granted that women are not supposed to.
  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

Brain Munch Hide

Crowd is gathering of people who think feeling lonely with other people is better than feeling lonely alone !

  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

, , , Brain Munch Hide

If only people could be themselves all the time with all the people and let others be , I wonder if this word would have been found !

  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

, , , Brain Munch Hide

Now can you define something like this without having felt it !

http://jyotsnasonawane.spaces.live.com/

  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

, Brain Munch Hide

Came across this image somewhere .. convinces me for strategy building requires facts at hand – facts that derive from a deep and careful study + observation. Must be a patience testing one – though was never convinced that managers are patient enough.

n767764652_1238952_8545

  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

, Brain Munch Hide

I find this the most sensible of definitions of alcohol
- which you may not agree to .. or may agree to when totally out of senses

Colourless volatile liquid formed by the fermentation of sugars and also notes its 
intoxicating effect of certain carbon based life forms.

Source: Encyclopedia galactica (HHGTTG)

Suprisingly, as HHGTTG says, definitions in almost all dictionaries available on earth are mind-blogglingly dull.

  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

, , Brain Munch Hide

Applies to:
Any SVN client using putty to connect to SVN server. For e.g. tortoise SVN

Who is this post for?
This post is for anyone who wants SVN client and server to forget currently configured password

Steps to follow

  1. Know your repository URL
    For this you should be using tortoise SVN repo-browser and check out the URL. In my case, it looks like

    svn+ssh://jyotsnas@visharad/svnRepos/travel_broker

    This tells me following

    • linux username being used is jyotsnas
    • the svn server is named as visharad
    • Probably all SVN repositories are located under /var/svnRepos
  2. Now that we know the servername, in this case ‘visharad’, open putty. Under saved sessions list, you should find your server name. Refer to following screenshot for the same


    visharad in saved sessions of putty

    visharad in saved sessions of putty

  3. Click on Load button so that we can find out more. Putty looks like following when I clicked Load


    visharad session loaded in putty

    visharad session loaded in putty

    Looking at this I have more concrete information about server i.e. Host name/IP : 192.168.1.50

  4. Let’s move to the SSH->Auth in left tree structure –


    visharad ssh auth settings in putty

    visharad ssh auth settings in putty

    This screen tells me a path to a private key file on my machine.

    F:\Jyotsna\SVN sessions\visharad.ppk

    Delete this path from the text box.

  5. Go back to sessions in left tree and click on save.

    When you delete this path, putty is going to forget the password to be used. Since tortoise SVN uses putty in turn to connect to server, it will forget it too. And that is it.

Questions you might have

  1. Why should I not delete the session instead of the private key file path?

    In cases like mine, visharad name was given to a machine with IP 192.168.1.50. If I had deleted the session, I would have have to relocate all the SVN repositories already checked out on my machine so that the new URL contains 192.168.1.50 instead of visharad. Not deleting the session saves this hassel of mine and still make tortoise svn not use the remembered password.

  2. How can I make tortoise SVN remember a new password?

    Just refer to this link for the instructions

Related posts

  • StumbleUpon
  • LinkedIn
  • Digg
  • Google Bookmarks
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Twitter

, , Linux, SVN Hide

« Previous Entries

Next Page »

Find it!

Theme Design by devolux.org