<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SSH Key rotation using reconcile option failing with error Permission denied or file is missing. in Privilege Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/ssh-key-rotation-using-reconcile-option-failing-with-error/m-p/1407930#M5774</link>
    <description>&lt;P&gt;Thanks &lt;A alt="https://community.cyberark.com/s/profile/005Ht00000ASYDFIA5" href="https://community.cyberark.com/s/profile/005Ht00000ASYDFIA5" target="_blank"&gt;TeporeA&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;I also noticed below statement from CyberArk doc.&lt;/P&gt;&lt;P&gt;"Reconcile account must use a root user or a power user with root permissions"&lt;/P&gt;&lt;P&gt;But Linux team having concern on root or power user with root permissions for reconcile account to rotate ssh keys because of highest privilege.&lt;/P&gt;&lt;P&gt;do we have any other approach where we can include only specific command for reconcile by default without assigning root level privileges?&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;can we update process.ini and prompt.ini file to include sudo prefix while running below command?&lt;/P&gt;&lt;P&gt;cp -p /home/ruser/.ssh/authorized_keys /home/svccyarecon/authorized_keys_7569639101370124862791; echo $?\r&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2026 10:00:48 GMT</pubDate>
    <dc:creator>PKumar112</dc:creator>
    <dc:date>2026-04-01T10:00:48Z</dc:date>
    <item>
      <title>SSH Key rotation using reconcile option failing with error Permission denied or file is missing.</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/ssh-key-rotation-using-reconcile-option-failing-with-error/m-p/1407928#M5772</link>
      <description>&lt;P&gt;SSH Key verification and change is working, but reconciling is failing with &amp;nbsp;error Permission denied or file is missing.&lt;/P&gt;&lt;P&gt;26.03.2026 03:50:12.517 | Info -&amp;gt; SSHConnectionHandler :: ExecuteSshCommand -&amp;gt; Running the command: copy file with preserve&lt;/P&gt;&lt;P&gt; 26.03.2026 03:50:12.517 | Info -&amp;gt; SSHConnectionHandler :: SendCommand -&amp;gt; START&lt;/P&gt;&lt;P&gt; 26.03.2026 03:50:12.517 | Info -&amp;gt; &amp;lt;&amp;gt;c__DisplayClass24_0 :: &amp;lt;SendCommand&amp;gt;b__0 -&amp;gt; Sending: cp -p /home/ruser/.ssh/authorized_keys /home/svccyarecon/authorized_keys_7569639101370124862791; echo $?\r&lt;/P&gt;&lt;P&gt; 26.03.2026 03:50:12.533 | Info -&amp;gt; SSHConnectionHandler :: SendCommand -&amp;gt; END&lt;/P&gt;&lt;P&gt; 26.03.2026 03:50:12.548 | Info -&amp;gt; &amp;lt;&amp;gt;c :: &amp;lt;Expect&amp;gt;b__21_0 -&amp;gt; Received: ccp -p /home/ruser/.ssh/a&amp;nbsp;&lt;/P&gt;&lt;P&gt; u&lt;/P&gt;&lt;P&gt; uthorized_keys /home/svccyarecon/authorized_keys_7569639101370124862791; echo $&amp;nbsp;&lt;/P&gt;&lt;P&gt; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cp: cannot stat '/home/ruser/.ssh/authorized_keys': Permission denied&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please assist, what exact permission required on recon account svccyarecon for SSH Key rotation on Linux server?  is there any other things to check?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 12:26:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/ssh-key-rotation-using-reconcile-option-failing-with-error/m-p/1407928#M5772</guid>
      <dc:creator>PKumar112</dc:creator>
      <dc:date>2026-03-30T12:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Key rotation using reconcile option failing with error Permission denied or file is missing.</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/ssh-key-rotation-using-reconcile-option-failing-with-error/m-p/1407929#M5773</link>
      <description>&lt;P&gt;Hi @Pradeep Kumar112​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error Permission denied indicates your reconcile account svccyarecon lacks the required permissions.&lt;/P&gt;&lt;P&gt;https://www.docs.cyberark.com/privilege-cloud-standard/Latest/en/Content/PASIMP/Plugin-SSH.htm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When UseSudoOnReconcile is set to No, the reconcile account must use a root user or a power user with root permissions. When UseSudoOnReconcile is set to Yes, the reconcile account must be in the sudoers list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the reconcile account user authenticates to the target server with a password, on the target machine, in sshd_config, set the PasswordAuthentication parameter to yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is also confirmed in the SSH Key reconciliation documentation(https://docs.cyberark.com/pam-self-hosted/latest/en/content/sshkm/managing%20ssh%20keys.htm)&amp;nbsp;and a CyberArk community thread where the user resolved the same issue by granting root privileges to the reconcile account. (https://community.cyberark.com/s/question/0D52J000070vSPgSAM/getting-permission-denied-error-while-reconciling-root-ssh-keys)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What to check:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Grant root-level privileges to svccyarecon on the target Linux server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, set UseSudoOnReconcile = Yes in the platform parameters (in this case, the account must be in the sudoers list)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Verify permissions on the target machine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;authorized_keys file → 600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.ssh folder → 700&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 13:00:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/ssh-key-rotation-using-reconcile-option-failing-with-error/m-p/1407929#M5773</guid>
      <dc:creator>TeporeA</dc:creator>
      <dc:date>2026-03-30T13:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Key rotation using reconcile option failing with error Permission denied or file is missing.</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/ssh-key-rotation-using-reconcile-option-failing-with-error/m-p/1407930#M5774</link>
      <description>&lt;P&gt;Thanks &lt;A alt="https://community.cyberark.com/s/profile/005Ht00000ASYDFIA5" href="https://community.cyberark.com/s/profile/005Ht00000ASYDFIA5" target="_blank"&gt;TeporeA&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;I also noticed below statement from CyberArk doc.&lt;/P&gt;&lt;P&gt;"Reconcile account must use a root user or a power user with root permissions"&lt;/P&gt;&lt;P&gt;But Linux team having concern on root or power user with root permissions for reconcile account to rotate ssh keys because of highest privilege.&lt;/P&gt;&lt;P&gt;do we have any other approach where we can include only specific command for reconcile by default without assigning root level privileges?&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;can we update process.ini and prompt.ini file to include sudo prefix while running below command?&lt;/P&gt;&lt;P&gt;cp -p /home/ruser/.ssh/authorized_keys /home/svccyarecon/authorized_keys_7569639101370124862791; echo $?\r&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2026 10:00:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/ssh-key-rotation-using-reconcile-option-failing-with-error/m-p/1407930#M5774</guid>
      <dc:creator>PKumar112</dc:creator>
      <dc:date>2026-04-01T10:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Key rotation using reconcile option failing with error Permission denied or file is missing.</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/ssh-key-rotation-using-reconcile-option-failing-with-error/m-p/1407931#M5775</link>
      <description>&lt;P&gt;Hi @Pradeep Kumar112​&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set it up as follows:&lt;/P&gt;&lt;P&gt;Set UseSudoOnReconcile= Yes in your platform&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the target Linux server (&lt;B&gt;I'm not a Linux sysadmin&lt;/B&gt;, so you may want to double-check with your internal team):&lt;/P&gt;&lt;P&gt;Add this line in&amp;nbsp;/etc/sudoers:&lt;/P&gt;&lt;P&gt;&lt;I&gt;svccyarecon ALL = NOPASSWD: /usr/bin/cp&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This allows the reconcile account to run only the&amp;nbsp;cp&amp;nbsp;command with sudo, without requiring a password.&lt;/P&gt;&lt;P&gt;If you need to allow additional commands:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;svccyarecon ALL = NOPASSWD: /usr/bin/cp, /usr/bin/chmod, /usr/bin/chown&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(These add&amp;nbsp;chmod&amp;nbsp;and&amp;nbsp;chown&amp;nbsp;if needed)&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2026 10:09:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/ssh-key-rotation-using-reconcile-option-failing-with-error/m-p/1407931#M5775</guid>
      <dc:creator>TeporeA</dc:creator>
      <dc:date>2026-04-01T10:09:55Z</dc:date>
    </item>
  </channel>
</rss>

