OpenSSH_3.1p1 auth problems

From: Robert Singleton (bobs001@earthlink.net)
Date: 08/22/02


From: Robert Singleton <bobs001@earthlink.net>
Date: Thu, 22 Aug 2002 03:05:49 GMT

I'm running OpenSSH_3.1p1 on RedHat7.3, and I can only
get password authentication working. However, I would
like to have public key authentication working. I've
read the SSH O'Reilly book, but their directions are
not working (so what am I doing wrong?):

Let's call the local host "Host-A" and remote host "Host-B".
On each host I have an account called "bobs", and I would
like to logon to Host-B FROM Host-A using public key auth.
I have created public-private key pairs in both accounts using
ssh-keygen. I then do the following:

1. Copy the local public key to the authorized_keys file on
    the remote host.

    bobs@Host-A bobs@Host-B
    .ssh/identity.pub ==> .ssh/authorized_keys

2. Set file permissions in remote directory bobs@Host-B
    % chmod 755 ~/.ssh
    % chmod 644 ~/.ssh/authorized_keys

The client file /etc/ssh/ssh_config on Host-A will allow
public key authentication by clients (I think this is the
"RSAAuthentication yes" flag). The server file /etc/sshd_config
on Host-B will allow public key authentication (via the flag
"PublicKeyAuthentication yes"). However, when I ssh on Host-A
to Host-B I am always prompted for a password. I have turned
the password flag off in Host-A:/etc/ssh/ssh_config and kept
the RSAAuthentication flag on, and then I receive the error:

Host-A% ssh -l bobs Host-B
Permission denied (publickey,password,keyboard-interactive).

This seems to indicate that my ONLY authentication option
is password authentication. Any suggestions? Thanks very
much.

Robert Singleton



Relevant Pages

  • SSH with Public Key Authentication (Was: Re: Attention: Giorgos Keramidas (Was: CVS Import Permissio
    ... I know that the setting of CVSUMASK on the server machine> works if you use SSH tunneling though. ... I have tried using SSH in the past, and got stuck setting up the public key login. ... In order to use cvs with ssh, we must use public key authentication. ...
    (freebsd-questions)
  • OpenSSH_3.1p1 auth problems
    ... like to have public key authentication working. ... like to logon to Host-B FROM Host-A using public key auth. ... when I ssh on Host-A ...
    (comp.os.linux.security)
  • Re: Public key authentication between open-ssh and ssh2
    ... ]i need to ssh via public key authentication from openssh to ssh2. ... decrypt with the public key from authorized_keys, ...
    (comp.security.ssh)
  • Re: public key vs passwd authentication?
    ... > I have a client that's turned off public key authentication. ... > examination of the security aspect, it'd make my job a lot easier/ ... http://www.garlic.com/~lynn/aadsm15.htm#2 Is cryptography where security took the wrong branch? ...
    (comp.security.ssh)
  • Putty to Windows sshd server authentication problem
    ... I am having difficulty with public key authentication between a Putty client on one host and a SSH-Textia Windows server on another host. ... 1488:Ssh2AuthPubKeyServer: Received public key not authorized by authorization file. ...
    (SSH)