I have my Jenkins installed on a windows server and I have created a Jenkins user on the server now I need to push the WAR files to my Linux server to a particular user root (myrootuser) who is there in the sudoers file.
I have access to this server also (myusername) in sudoers files, so I can login using my credentials and su sudo su - myrootuser to gain access.
My question
Can Jenkins user access myrootuser using without being in the sudoers file I tried adding the public key of Jenkns into myrootuser .ssh/ authorized_keys and i added a file know_hosts in the windows server with the Linux server details
EDITED
I have a Linux server with Jenkins on it and that server talks to this Linux server perfectly fine... its public key is present in authorized_keys so I add my windows server key here... but it doesn't work