Please guide how can i do RSA (private,public key) exchange for authentication for Jenkins build processes.
Make passwordless authentication from Jenkins server user to Remote machine user.
step 1: Generate Key_pair in Jenkins Server
$ssh-keygen
step 2: Create a ~/.ssh
directory on the Remote server and set the
mode as 600
step 3: Copy content of ~/.ssh/id-rsa.pub
on Jenkins server to
~/.ssh/authorized_keys
step 4: Try the below command from Jenkins Server
$ssh remote_server_user@remote_server_ip