Public Key Authorization
From: Bernd (stuby_at_danet.de)
Date: 07/26/04
- Next message: Dominik Schikora: "Putty 0.54 with Gssapi Patch"
- Previous message: Richard E. Silverman: "Re: multiplexing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 26 Jul 2004 02:22:09 -0700
hello,
I try to setup an ssh daemon on windows 2003 Server. For automated
starting a batchfile remotly from another windowsclient I need access
without typing in a password.
I'm trying to use public key authentication but it seems not to work
in my way.
I generated a key pair with ssh-keygen -t rsa on the client machine.
The following output shows that the authentication succeeds but no
shell or command prompt is started on the server.
Just watching in event log, i find a message belonging to sshd like:
fatal: setreuid 11513: Permission denied
But I can't find any program on the server with that name.?!
Switching off the public key authentication by moving the .ssh
directory away on the server produces a password request. Typing in
the correct password, the remote shell is started and everything works
fine.
Anybody any Ideas ?
Yours
This is the output of a trial with public keys:
ssh stuby@<server> -v
OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
debug1: Connecting to <server> [server_address] port 22.
debug1: Connection established.
debug1: identity file /cygdrive/c/Documents and
Settings/stuby/.ssh/identity type -1
debug1: identity file /cygdrive/c/Documents and
Settings/stuby/.ssh/id_rsa type 1
debug1: identity file /cygdrive/c/Documents and
Settings/stuby/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version
OpenSSH_3.8.1p1
debug1: match: OpenSSH_3.8.1p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'rameau' is known and matches the RSA host key.
debug1: Found key in /cygdrive/c/Documents and
Settings/stuby/.ssh/known_hosts:8
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /cygdrive/c/Documents and
Settings/stuby/.ssh/identity
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
Last login: Mon Jul 26 10:59:10 2004 from mangore.is.danet.de
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Connection to rameau closed.
debug1: Transferred: stdin 0, stdout 0, stderr 30 bytes in 0.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 101.7
debug1: Exit status 255
The following is the sshd_config File im using
# $OpenBSD: sshd_config,v 1.65 2003/08/28 12:54:34 markus Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
Protocol 2
PermitRootLogin yes
StrictModes no
RSAAuthentication no
PubkeyAuthentication yes
RhostsRSAAuthentication yes
IgnoreUserKnownHosts yes
PasswordAuthentication yes
UsePrivilegeSeparation no
MaxStartups 10:30:60
Banner /etc/banner.txt
Subsystem sftp /usr/sbin/sftp-server
- Next message: Dominik Schikora: "Putty 0.54 with Gssapi Patch"
- Previous message: Richard E. Silverman: "Re: multiplexing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|