A. Rich writes:
  : in my $HOME/.ssh2/identification file I have (though I'm not really sure
  : whether or not it's needed):
  : 
  : IdKey id_dsa_1024_a

It is not necessary to set up pubkey-authentication to use hostbased
authentication.

  : in $HOME/.ssh2/knownhosts/remote.host.com.ssh-dss.pub  I have the remote
  : server's /etc/ssh2/hostkey.pub.
  : 
  : 
  : When I connect from the remote host, I'm still prompted for a password, but I
  : can hit return or put anything in as my password and then it logs me in.  The
  : behaviour I expect is not to be prompted for a password at all.  I'm guessing
  : I missed something simple, but I'm not sure what.

Please try this patch. Inform me of the outcome.

To apply this patch, cd to your ssh-2.0.13 source directory, and issue 
the following command:

% patch -p1 -l < patch-ssh-2.0.13-hostbased.before.pubkey

You then should

% make clean
% make
% su
Password:
# make install

Sami Lehtinen <[EMAIL PROTECTED]>

#End prologue

diff -u -r1.1.1.1 sshauthmethods.c
--- ssh-2.0.13.orig/apps/ssh/sshauthmethods.c   1999/04/09 01:46:18     1.1.1.1
+++ ssh-2.0.13/apps/ssh/sshauthmethods.c        1999/06/18 03:16:02
@@ -25,9 +25,9 @@
 
 static SshAuthServerMethod server_methods[] =
 {
+  { SSH_AUTH_HOSTBASED, ssh_server_auth_hostbased },
   { SSH_AUTH_PUBKEY, ssh_server_auth_pubkey },
   { SSH_AUTH_PASSWD, ssh_server_auth_passwd },
-  { SSH_AUTH_HOSTBASED, ssh_server_auth_hostbased },
   { NULL, NULL }
 };
 
diff -u -r1.1.1.1 sshauthmethodc.c
--- ssh-2.0.13.orig/apps/ssh/sshauthmethodc.c   1999/04/09 01:45:51     1.1.1.1
+++ ssh-2.0.13/apps/ssh/sshauthmethodc.c        1999/06/18 03:15:47
@@ -29,9 +29,9 @@
 
 SshAuthClientMethod ssh_client_auth_methods[] =
 {
+  { SSH_AUTH_HOSTBASED, ssh_client_auth_hostbased },
   { SSH_AUTH_PUBKEY, ssh_client_auth_pubkey }, 
   { SSH_AUTH_PASSWD, ssh_client_auth_passwd },
-  { SSH_AUTH_HOSTBASED, ssh_client_auth_hostbased },
   { NULL, NULL }
 };
 

-- 
[[EMAIL PROTECTED]           --  Sami J. Lehtinen  --           [EMAIL PROTECTED]]
[work:+358 9 43543214][gsm:+358 50 5170 258][http://www.iki.fi/~sjl]
[SSH Communications Security Ltd.                http://www.ssh.fi/]

Reply via email to