Re: [git-users] Re: question regarding multiple ssh keys

2010-05-30 Thread Artiom Diomin
On Sun, 30 May 2010 01:23:48 +0100
Sam Sherlock sam.sherl...@gmail.com wrote:

Hello Sam,

The point of this wiki page is to have ability to change ssh-keys on
the fly then you dealing with *one* hostname (in case of Assembla is
git.assembla.com). If you have multiple hostnames
(youproject.github.com, youproject2.github.com) you don't need this
staff as you can configure keys per hostname in ~/.git/config.

 It  seems that I need to have the gitssh script described here
 
 https://www.assembla.com/wiki/show/breakoutdocs/Different_SSH_keys_for_different_projects
 
 I seem to need to follow the instructions on the link above and the
 one previously posted then it works (I deleted the gitssh script in
 order to remove things that are not required - I think I pushed a
 couple of times without it but then it stopped working again -
 complaining of its absence - perhaps I needed to remove and then
 reboot or something)

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Re: question regarding multiple ssh keys

2010-05-29 Thread Sam Sherlock
Hi all,

my global config is the other account - the sams account is my prviate one
the repos with local config to connect to my private account use Other
rather than sams

I am using id_rsa as my default key for other account and sams_rsa for
private account

So why is git not using the ~.ssh/config file

I am using msysgit windows - I generated key with ssh-keygen

~/.ssh/config (stuff in brackets I have tried but also did not work)

Host *.github.com
Hostname github.com
User git

Host sams.github.com
IdentityFile ~/.ssh/sams_rsa
(User sams)

Host Other.github.com
IdentityFile ~/.ssh/id_rsa
(User Other)

--

$ ssh -vvv g...@sams.github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /g/Documents and
Settings/Owner/.ssh/config
debug1: Applying options for *.github.com
debug1: Applying options for sams.github.com
debug2: ssh_connect: needpriv 0
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /g/Documents and Settings/Owner/.ssh/sams_rsa.
debug2: key_type_from_name: unknown key type '-BEGIN'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-END'
debug3: key_read: missing keytype
debug1: identity file /g/Documents and Settings/Owner/.ssh/sams_rsa type 1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1
Debian-5github2
debug1: match: OpenSSH_5.1p1 Debian-5github2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sh
1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,
rijndael-...@lysator.liu.se
aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,
rijndael-...@lysator.liu.se
aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,
hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,
hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,z...@openssh.com,zlib
debug2: kex_parse_kexinit: none,z...@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sh
1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,
rijndael-...@lysator.liu.se
aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,
rijndael-...@lysator.liu.se
aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com
,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com
,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,z...@openssh.com
debug2: kex_parse_kexinit: none,z...@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server-client aes128-cbc hmac-md5 none
debug2: mac_init: found 

Re: [git-users] Re: question regarding multiple ssh keys

2010-05-29 Thread Sam Sherlock
It  seems that I need to have the gitssh script described here

https://www.assembla.com/wiki/show/breakoutdocs/Different_SSH_keys_for_different_projects

I seem to need to follow the instructions on the link above and the one
previously posted then it works (I deleted the gitssh script in order to
remove things that are not required - I think I pushed a couple of times
without it but then it stopped working again - complaining of its absence -
perhaps I needed to remove and then reboot or something)

- S



On 30 May 2010 00:15, Sam Sherlock sam.sherl...@gmail.com wrote:

 found a solution after a bit of searching
 http://github.com/guides/addressing-authentication-problems-with-ssh

  - S





 On 29 May 2010 22:57, Sam Sherlock sam.sherl...@gmail.com wrote:

 Hi all,

 my global config is the other account - the sams account is my prviate one
 the repos with local config to connect to my private account use Other
 rather than sams

 I am using id_rsa as my default key for other account and sams_rsa for
 private account

 So why is git not using the ~.ssh/config file

 I am using msysgit windows - I generated key with ssh-keygen

 ~/.ssh/config (stuff in brackets I have tried but also did not work)

 Host *.github.com
 Hostname github.com
 User git

 Host sams.github.com
 IdentityFile ~/.ssh/sams_rsa
 (User sams)

 Host Other.github.com
 IdentityFile ~/.ssh/id_rsa
 (User Other)

 --

 $ ssh -vvv g...@sams.github.com
 OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
 debug1: Reading configuration data /g/Documents and
 Settings/Owner/.ssh/config
 debug1: Applying options for *.github.com
 debug1: Applying options for sams.github.com
  debug2: ssh_connect: needpriv 0
 debug1: Connecting to github.com [207.97.227.239] port 22.
 debug1: Connection established.
 debug3: Not a RSA1 key file /g/Documents and Settings/Owner/.ssh/sams_rsa.
  debug2: key_type_from_name: unknown key type '-BEGIN'
 debug3: key_read: missing keytype
 debug2: key_type_from_name: unknown key type 'Proc-Type:'
 debug3: key_read: missing keytype
 debug2: key_type_from_name: unknown key type 'DEK-Info:'
 debug3: key_read: missing keytype
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug2: key_type_from_name: unknown key type '-END'
 debug3: key_read: missing keytype
 debug1: identity file /g/Documents and Settings/Owner/.ssh/sams_rsa type 1
 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1
 Debian-5github2
 debug1: match: OpenSSH_5.1p1 Debian-5github2 pat OpenSSH*
 debug1: Enabling compatibility mode for protocol 2.0
 debug1: Local version string SSH-2.0-OpenSSH_4.6
 debug2: fd 3 setting O_NONBLOCK
 debug1: SSH2_MSG_KEXINIT sent
 debug1: SSH2_MSG_KEXINIT received
 debug2: kex_parse_kexinit:
 diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sh
 1
 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
 debug2: kex_parse_kexinit:
 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,
 rijndael-...@lysator.liu.se
 aes128-ctr,aes192-ctr,aes256-ctr
 debug2: kex_parse_kexinit:
 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,
 rijndael-...@lysator.liu.se
 aes128-ctr,aes192-ctr,aes256-ctr
 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,
 hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,
 hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
 debug2: kex_parse_kexinit: none,z...@openssh.com,zlib
 debug2: kex_parse_kexinit: none,z...@openssh.com,zlib
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit: first_kex_follows 0
 debug2: kex_parse_kexinit: reserved 0
 debug2: kex_parse_kexinit:
 diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sh
 1
 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
 debug2: kex_parse_kexinit: