Generally, users need to enter a username and password when logging into the Delphix CLI. There are situations in which users may find entering a password cumbersome, or manual password entry may not be possible. These situations can be alleviated by setting up auto-authentication for the Delphix CLI.
There are two basic steps:
- Generate a public and Private RSA key pair.
- Register the public key with the specific Delphix Engine user.
There are two methods available:
- OpenSSH with OpenSSL
If the examples provided do not work for you, you may need to consult your SSH documentation, we can only provide support for the Delphix Engine side of the connection. In both examples we grant password less login to the sysadmin user to host Delphix5010.
You will need both putty.exe and puttygen.exe for this.
Set the Type of key to generate to SSH-2 RSA and the Number of bites in generated key to a suitable value such as 2048. Click Generate
Once it has generated the key pair, leave the password fields blank and save the public and private keys to file.
Add the full contents of the public key to each Delphix Engine user you want to allow automatic login for.
- In Putty, create a profile that uses the private key. In the PuTTY Connection settings set SSH > Auth >Private key file for authentication to the private key file you just generated
- Next, still in the PuTTY Connection settings set Data > Auto-login username to
- Test the connection by setting the connection hostname as you normally would for PuTTY and click Open.
Using OpenSSH with Open SSL
Generally, OpenSSH will already have default public and private keys that can be used, if not (or the default keys are password locked) you can create them this way. OpenSSL is required but OpenSSH will take care of the background OpenSSL stuff for you.
- Create your RSA key pair to a bit length suitable for your security needs (2048 is commonly required for recent security audits)
Results in a matching public file called
If you want to create different key pairs, just specify a different file path.
2. Add the full contents of the public key (
/etc/ssh/ssh_host_rsa_key.pub in this example) to each Delphix Engine user you want to allow automatic login for.
3. Test no password login on the command line from your client.