How do I configure Public Key authentication?
How do I configure Public Key authentication?
Public Key authentication is not to be confused with PKI. There is no infrastructure here and no certificates either. Still it can be a useful technique.
First you need to enable Public Key as an Authetication method for the system. Go to Administration -> Authetication Methods and select "Pulick key" from the "Add authetication method"-drop down. Save it.
Next you need to generate a Public Key pair for a user. This is done by going to Administration->"User Accounts"->"Local Accounts" and click on the user. Make sure "Public key" is checked and the click on "Create key pair". You'll be prompted for a password to protect the key, this may be left empty if needed. Then you'll be prompted to save the private key part on your computer, the standard file name (which is used through-out this guide) is id_rsa.
On the client side you should select Public Key as your authentication method. If you are using the AppGate client you can select the id_rsa file in the "Open Connection"->"Properties" dialog, if you use a standard ssh client you will typically give it like:
ssh -i id_rsa user@appgate.server
If things does not work you can run the sshd deamon on the AppGate server in debug mode.
Become root Run the command
/opt/APPGserv/sbin/sshd -d -d -p 222
You can add more -d if you want more verbose output.In the client change the port to 222 and connect.
