{"thread":{"id":"23567","subject":"SSH keys location","startedAt":"2010-04-22T18:40:49Z","lastAt":"2010-04-22T18:42:39Z","messageCount":2,"participants":["Mahesh Vaidya","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"140145","messageId":"v2rb42431c81004221140n31c76030m74656d01950b8ae0@mail.gmail.com","threadId":"23567","inReplyTo":null,"subject":"SSH keys location","fromName":"Mahesh Vaidya","fromEmail":"forvaidya@gmail.com","sentAt":"2010-04-22T18:40:49Z","receivedAt":"2010-04-22T18:40:49Z","isPatch":false,"sender":{"key":"forvaidya@gmail.com","avatar":null},"body":"Hi\n\nI have a situation where I must save my private keys location other\nthan ~/.ssh ; How do I tell git URL that please take public key from\nso and so location equivalent of ssh -i <identity-file> flag\n\nexample my clone command is\n\ngit clone gitosis@server:repos.git\n\nThank You\n\n-Mahesh\n"},{"id":"140146","messageId":"20100422184239.GA29426@spearce.org","threadId":"23567","inReplyTo":"v2rb42431c81004221140n31c76030m74656d01950b8ae0@mail.gmail.com","subject":"Re: SSH keys location","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2010-04-22T18:42:39Z","receivedAt":"2010-04-22T18:42:39Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Mahesh Vaidya <forvaidya@gmail.com> wrote:\n> I have a situation where I must save my private keys location other\n> than ~/.ssh ; How do I tell git URL that please take public key from\n> so and so location equivalent of ssh -i <identity-file> flag\n> \n> example my clone command is\n> \n> git clone gitosis@server:repos.git\n\nJust use ~/.ssh/config to rewrite the options:\n\n  Host server\n    IdentityFile /some/private/key/path\n\n-- \nShawn.\n"}]}