[Bug 540515] New: ssh: Error reading response length from authentication socket.

http://bugzilla.novell.com/show_bug.cgi?id=540515 Summary: ssh: Error reading response length from authentication socket. Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: aj@novell.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090909 SUSE/3.5.3-1.1 Firefox/3.5.3 aj@x61s-aj:~> ssh-add Enter passphrase for /home/aj/.ssh/id_dsa: Identity added: /home/aj/.ssh/id_dsa (/home/aj/.ssh/id_dsa) Error reading response length from authentication socket. Reproducible: Always Steps to Reproduce: 1. run ssh-add in GNOME terminal 2. enter correct passphrase -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |anicka@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Found By|--- |Product Management -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User anicka@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c1 Anna Bernathova <anicka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |NEEDINFO Info Provider| |aj@novell.com --- Comment #1 from Anna Bernathova <anicka@novell.com> 2009-09-21 06:26:13 MDT --- It does not seem to be that simple - when I do the same, everything works fine, it ends with "Identity added." It might help to know how you are running your authentication agent. Also, could you please strace it? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c2 --- Comment #2 from Andreas Jaeger <aj@novell.com> 2009-09-21 07:50:31 MDT --- What exactly do you want to know about the authentication agent? I'm adding the strace output. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c3 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|aj@novell.com | --- Comment #3 from Andreas Jaeger <aj@novell.com> 2009-09-21 07:51:21 MDT --- Created an attachment (id=319091) --> (http://bugzilla.novell.com/attachment.cgi?id=319091) strace -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User anicka@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c4 Anna Bernathova <anicka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #4 from Anna Bernathova <anicka@novell.com> 2009-09-21 08:16:01 MDT --- How it is executed? Trough Xsession? Or you have some custom script? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c5 --- Comment #5 from Andreas Jaeger <aj@novell.com> 2009-09-21 08:18:44 MDT --- Through xsession -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User anicka@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c6 Anna Bernathova <anicka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |aj@novell.com --- Comment #6 from Anna Bernathova <anicka@novell.com> 2009-09-21 08:55:59 MDT --- That is exactly what I have done, all seems to work for me. Anyway, it looks that some of the programs simply died or got stuck. I must say I do not understand much the gnome part. But still, is ssh-agent alive? Does not help just to restart the session? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c7 --- Comment #7 from Andreas Jaeger <aj@novell.com> 2009-09-22 02:27:59 MDT --- The insteresting part seems to be that it reads the passwort and passes it correctly to the agent but still gives an error message. I'll try again tomorrow. I guess an "ssh-add -L" before and after the call of ssh-add would be interesting. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c8 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|aj@novell.com | --- Comment #8 from Andreas Jaeger <aj@novell.com> 2009-09-23 07:23:23 MDT --- Here's what I did - so it seems to work: aj@x61s-aj:~> ssh-add -L ssh-dss [...] aj@gromit aj@x61s-aj:~> ssh-add Enter passphrase for /home/aj/.ssh/id_dsa: Identity added: /home/aj/.ssh/id_dsa (/home/aj/.ssh/id_dsa) Error reading response length from authentication socket. aj@x61s-aj:~> ssh-add -L ssh-dss [...] aj@gromit ssh-dss [...] /home/aj/.ssh/id_dsa aj@x61s-aj:~> -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User anicka@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c9 Anna Bernathova <anicka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |aj@novell.com --- Comment #9 from Anna Bernathova <anicka@novell.com> 2009-10-07 09:46:33 MDT --- Well, it at least says us where it happens. But I still cannot reproduce it. You are using gnome-keyring, am I right? Is gnome-keyring-daemon alive after it happens? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c10 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|aj@novell.com | --- Comment #10 from Andreas Jaeger <aj@novell.com> 2009-10-08 02:29:59 MDT --- Yes, gnome-keyring is used and is alive afterwards. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c11 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vuntz@novell.com --- Comment #11 from Andreas Jaeger <aj@novell.com> 2009-10-08 02:38:27 MDT --- Vincent, can you reproduce this on your system as well? It looks GNOME specific. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User vuntz@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c12 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |aj@novell.com --- Comment #12 from Vincent Untz <vuntz@novell.com> 2009-10-08 03:02:34 MDT --- No, I can't reproduce this (just tried again on a new account with a new key). But since the ssh agent is gnome-keyring in the GNOME session, this could potentially be a gnome-keyring issue. It's just a bit weird that I've never seen this before :/ Does your key have anything special? Can you reproduce the issue with another account and/or another key? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User vuntz@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c13 --- Comment #13 from Vincent Untz <vuntz@novell.com> 2009-10-08 03:03:52 MDT --- Also, can you try running another ssh-agent? (just run ssh-agent in a terminal, and export the variables) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c14 --- Comment #14 from Andreas Jaeger <aj@novell.com> 2009-10-08 03:21:05 MDT --- Vincent, you're saying that I should not have ssh-agent run under GNOME? But it runs for me - perhaps that's the problem: 2182 ? Ss 0:00 /usr/bin/ssh-agent /bin/bash /etc/X11/xinit/xinitrc -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c15 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|aj@novell.com | --- Comment #15 from Andreas Jaeger <aj@novell.com> 2009-10-08 03:22:19 MDT --- Ad #13: This works fine... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c16 --- Comment #16 from Andreas Jaeger <aj@novell.com> 2009-10-08 03:26:15 MDT --- Mmmh, /etc/X11/xdm/sys.xsession has: # # No ssh-agent if a ssh session is already provided by an other agent. # if test "$usessh" = yes -a -n "$GNOME_KEYRING_PID" ; then if test -S "$SSH_AUTH_SOCK" -a -S "$GNOME_KEYRING_SOCKET" ; then usessh=no fi fi And .xsession-errors contains: GNOME_KEYRING_SOCKET=/tmp/keyring-KEn5Fd/socket SSH_AUTH_SOCK=/tmp/keyring-KEn5Fd/socket.ssh -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c17 --- Comment #17 from Andreas Jaeger <aj@novell.com> 2009-10-08 03:35:52 MDT --- And I have "usessh=yes" after the test in #16 is run (just tested), the variables are: usessh is yes GNOME_KEYRING_PID: 7193 ssh-auth-sock: gnome-keyring-socket: /tmp/keyring-g2kGyS/socket So, $SSH_AUTH_SOCK is not set at this place. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c18 --- Comment #18 from Andreas Jaeger <aj@novell.com> 2009-10-08 03:40:33 MDT --- This is strange, ~/.xsession-errors contains: GNOME_KEYRING_SOCKET=/tmp/keyring-g2kGyS/socket SSH_AUTH_SOCK=/tmp/keyring-g2kGyS/socket.ssh and the variable in the shell has the same value - but just not in sys.xsession??? Processes running are: 7193 ? Sl 0:00 /usr/bin/gnome-keyring-daemon --daemonize --login 7273 ? Ss 0:00 /usr/bin/gpg-agent --sh --daemon --write-env-file /home/aj/.gnupg/agent.info /usr/bin/ssh-agent /bin/bash /etc/X11/xinit/xinitrc 7274 ? Ss 0:00 /usr/bin/ssh-agent /bin/bash /etc/X11/xinit/xinitrc So, gnome-keyring-daemon is launched first, and then gpg-agent and ssh-agent. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c19 --- Comment #19 from Andreas Jaeger <aj@novell.com> 2009-10-08 03:53:00 MDT --- If I set usessh=no in /etc/X11/xdm/sys.xsession, no ssh-agent is started but I still see this error message. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User vuntz@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c20 --- Comment #20 from Vincent Untz <vuntz@novell.com> 2009-10-08 04:44:27 MDT --- I filed bug 545302 for the issue about ssh-agent being started while it shouldn't. Now waiting for Andreas to test ssh-add with another user (he has some issues on his machine, so this might take some time ;-)) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c21 --- Comment #21 from Andreas Jaeger <aj@novell.com> 2009-10-08 05:24:10 MDT --- Could it be that this is broken with ~/.ssh/id_dsa ? I created a new user and added a new key - and rsa one. That worked. Then I copied ~aj/.ssh to the new user, run ssh-add again - and it failed. My .ssh directory contains: -rw-r--r-- 1 aj users 346 2000-10-22 10:08 authorized_keys -rw-r--r-- 1 aj users 599 2001-05-29 07:58 authorized_keys2 -rw-r--r-- 1 aj users 790 2009-04-03 20:10 config -rw------- 1 aj users 744 2002-08-26 22:57 id_dsa -rw-r--r-- 1 aj users 599 2001-05-29 07:57 id_dsa.pub -rw------- 1 aj users 542 1999-11-17 17:47 identity -rw-r--r-- 1 aj users 346 1999-11-17 17:47 identity.pub -rw-r--r-- 1 aj users 37245 2009-09-16 11:14 known_hosts -rw-r--r-- 1 aj users 20463 2004-04-15 20:40 known_hosts2 -rw------- 1 aj users 512 2001-10-20 09:36 random_seed -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User vuntz@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c22 --- Comment #22 from Vincent Untz <vuntz@novell.com> 2009-10-08 05:43:44 MDT --- I created a dsa key. Still works fine here. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c23 --- Comment #23 from Andreas Jaeger <aj@novell.com> 2009-10-08 05:49:52 MDT --- Ah, if I delete identity and identity.pub, it works - and if I just add those two it fails again... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c24 --- Comment #24 from Andreas Jaeger <aj@novell.com> 2009-10-08 05:51:47 MDT --- identity is a "SSH PRIVATE KEY FILE FORMAT 1.1" -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User vuntz@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c26 --- Comment #26 from Vincent Untz <vuntz@novell.com> 2009-10-08 06:06:00 MDT --- Ah, I can reproduce the issue with a ssh1 key too. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c27 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|aj@novell.com | --- Comment #27 from Andreas Jaeger <aj@novell.com> 2009-10-08 06:33:18 MDT --- Ad #25: Anicka, GNOME_KEYRING_SOCKET and GNOME_KEYRING_PID did not change before and after the call... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User vuntz@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c28 --- Comment #28 from Vincent Untz <vuntz@novell.com> 2009-10-08 08:06:50 MDT --- I believe I found the issue -- apparently, gnome-keyring doesn't read the comment of the key, and so it reads it as if it were contraints (next fields in the protocol). Building a test package to check. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 User vuntz@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=540515#c29 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #29 from Vincent Untz <vuntz@novell.com> 2009-10-08 08:30:43 MDT --- This indeed fixes the issue. Submitted #22093. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=540515 http://bugzilla.novell.com/show_bug.cgi?id=540515#c30 --- Comment #30 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (540515) was mentioned in https://build.opensuse.org/request/show/22093 Factory / gnome-keyring -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com