Set-up SSHD to handle multiple key pairs.

Posted by Warlax on Server Fault See other posts from Server Fault or by Warlax
Published on 2010-03-18T06:13:06Z Indexed on 2010/03/18 6:21 UTC
Read the original article Hit count: 438

Filed under:
|
|

Hey guys,

I am trying to set up my sshd to accept users that do not have a system user account. My approach is to use DSA public/private key pairs.

  1. I generated a key pair: $ ssh-keygen -t dsa
  2. I copied id_dsa.pub to the server machine where sshd runs.
  3. I appended the line from id_dsa.pub to ~/.ssh/authorized_keys of the single existing system user account I will use for every 'external' user.
  4. I tried to ssh as the 'external' user into the machine where I set-up the authorized_keys and failed miserably.

What am I missing here?

Thanks.

© Server Fault or respective owner

Related posts about openssh

Related posts about sshd-config