[TriLUG] SSH & public key authorization on sourceforge

Andrew C. Oliver acoliver at nc.rr.com
Wed Sep 5 19:17:52 EDT 2001


I'm trying to get public key authentication working on sourceforge. 
here's what I'm doing..  (I actually tried a few other ways I found on 
the net but those we failures as well).  Any help would be greatly 
appreciated.


[andy at linux2 .ssh]$ ssh-keygen
Generating public/private rsa1 key pair.
Enter file in which to save the key (/home/andy/.ssh/identity):
/home/andy/.ssh/identity already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/andy/.ssh/identity.
Your public key has been saved in /home/andy/.ssh/identity.pub.
The key fingerprint is:

[andy at linux2 .ssh]$ sftp acoliver2 at poi.sourceforge.net
Connecting to poi.sourceforge.net...
acoliver2 at poi.sourceforge.net's password:
sftp> put identity.pub .ssh/authorized_keys
Uploading identity.pub to /home/users/a/ac/acoliver2/.ssh/authorized_keys
sftp> quit


[andy at linux2 .ssh]$ ssh acoliver2 at poi.sourceforge.net -v -v -v
OpenSSH_2.5.2p2, SSH protocols 1.5/2.0, OpenSSL 0x0090600f
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be 
trusted.
debug1: ssh_connect: getuid 500 geteuid 0 anon 1
debug1: Connecting to poi.sourceforge.net [216.136.171.201] port 22.
debug1: Connection established.
debug1: identity file /home/andy/.ssh/identity type 0
debug1: identity file /home/andy/.ssh/id_rsa type 0
debug1: unknown identity file /home/andy/.ssh/id_dsa
debug1: identity file /home/andy/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version 
OpenSSH_2.5.2p2
debug1: match: OpenSSH_2.5.2p2 pat ^OpenSSH
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_2.5.2p2
debug1: send KEXINIT
debug1: done
debug1: wait KEXINIT
debug1: got kexinit: 
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug1: got kexinit: ssh-dss
debug1: got kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,rijndael-cbc at lysator.liu.se
debug1: got kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,rijndael-cbc at lysator.liu.se
debug1: got kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
debug1: got kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
debug1: got kexinit: none,zlib
debug1: got kexinit: none,zlib
debug1: got kexinit:
debug1: got kexinit:
debug1: first kex follow: 0
debug1: reserved: 0
debug1: done
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: Sending SSH2_MSG_KEX_DH_GEX_REQUEST.
debug1: Wait SSH2_MSG_KEX_DH_GEX_GROUP.
debug1: Got SSH2_MSG_KEX_DH_GEX_GROUP.
debug1: dh_gen_key: priv key bits set: 132/256
debug1: bits set: 1005/2049
debug1: Sending SSH2_MSG_KEX_DH_GEX_INIT.
debug1: Wait SSH2_MSG_KEX_DH_GEX_REPLY.
debug1: Got SSH2_MSG_KEXDH_REPLY.
debug1: Host 'poi.sourceforge.net' is known and matches the DSA host key.
debug1: Found key in /home/andy/.ssh/known_hosts2:14
debug1: bits set: 1002/2049
debug1: len 55 datafellows 0
debug1: ssh_dss_verify: signature correct
debug1: Wait SSH2_MSG_NEWKEYS.
debug1: GOT SSH2_MSG_NEWKEYS.
debug1: send SSH2_MSG_NEWKEYS.
debug1: done: send SSH2_MSG_NEWKEYS.
debug1: done: KEX2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: 
publickey,password,keyboard-interactive
debug3: start over, passed a different list 
publickey,password,keyboard-interactive
debug3: preferred publickey,password,keyboard-interactive
debug3: authmethod_lookup publickey
debug3: remaining preferred: password,keyboard-interactive
debug3: authmethod_is_enabled publickey
debug1: next auth method to try is publickey
debug2: userauth_pubkey_agent: no keys at all
debug2: userauth_pubkey_agent: no more keys
debug2: userauth_pubkey_agent: no message sent
debug1: try privkey: /home/andy/.ssh/id_dsa
debug3: no such identity: /home/andy/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: keyboard-interactive
debug3: authmethod_is_enabled password
debug1: next auth method to try is password
acoliver2 at poi.sourceforge.net's password:

It still asks me for the blasted password...  What am I missing?





-- 
www.superlinksoftware.com
www.sourceforge.net/projects/poi - port of Excel format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html
			- fix java generics!




More information about the TriLUG mailing list