<?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 AWS keypair failing authentication to  PA-VM in VM-Series in the Public Cloud</title>
    <link>https://live.paloaltonetworks.com/t5/vm-series-in-the-public-cloud/aws-keypair-failing-authentication-to-pa-vm/m-p/516934#M1684</link>
    <description>&lt;P&gt;AWS ssh publickey failing while connecting to PA-VM, falls back to password authentication which obviously fails. I suspect some of this behavior is due to macos and openssh deprecating ssh-rsa, PAN-OS 9.1.14 offers ssh-rsa which is rejected by default, -oHostKeyAlgorthms=+ssh-rsa will avoid this issue. Also tried -oPubkeyAcceptedKeyTypes=+ssh-rsa, no difference. Currently using ED25519 keypair instead to see if that makes a difference, it doesn't. Receiving packet type 51 (SSH_MSG_USERAUTH_FAILURE) in response to publickey authentication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;permissions on AWSKey.pem 400&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what gives? Why can't I connect via ssh publickey to AWS PA-VM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;debug1: get_agent_identities: bound agent to hostkey &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: Will attempt key: AWSKey.pem ED25519 SHA256:Fb+eyKkBDlwHGAOd4/rw9SRAbkgHk explicit &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug2: pubkey_prepare: done &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: send packet: type 5 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: receive packet: type 6 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug2: service_accept: ssh-userauth &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: send packet: type 50 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: &lt;STRONG&gt;receive packet: type 51 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: start over, passed a different list publickey,password,keyboard-interactive &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: authmethod_lookup publickey &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: remaining preferred: keyboard-interactive,password &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: authmethod_is_enabled publickey &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: Next authentication method: publickey &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: Offering public key: AWSKey.pem ED25519 SHA256:Fb+eyKkBDlwHGAOd4/rw9SRAbcHk explicit &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: send packet: type 50 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug2: we sent a publickey packet, wait for reply &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: &lt;STRONG&gt;receive packet: type 51 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug2: we did not send a packet, disable method &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: authmethod_lookup keyboard-interactive &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: remaining preferred: password&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 00:06:16 GMT</pubDate>
    <dc:creator>SteveBrown808</dc:creator>
    <dc:date>2022-10-06T00:06:16Z</dc:date>
    <item>
      <title>AWS keypair failing authentication to  PA-VM</title>
      <link>https://live.paloaltonetworks.com/t5/vm-series-in-the-public-cloud/aws-keypair-failing-authentication-to-pa-vm/m-p/516934#M1684</link>
      <description>&lt;P&gt;AWS ssh publickey failing while connecting to PA-VM, falls back to password authentication which obviously fails. I suspect some of this behavior is due to macos and openssh deprecating ssh-rsa, PAN-OS 9.1.14 offers ssh-rsa which is rejected by default, -oHostKeyAlgorthms=+ssh-rsa will avoid this issue. Also tried -oPubkeyAcceptedKeyTypes=+ssh-rsa, no difference. Currently using ED25519 keypair instead to see if that makes a difference, it doesn't. Receiving packet type 51 (SSH_MSG_USERAUTH_FAILURE) in response to publickey authentication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;permissions on AWSKey.pem 400&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what gives? Why can't I connect via ssh publickey to AWS PA-VM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;debug1: get_agent_identities: bound agent to hostkey &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: Will attempt key: AWSKey.pem ED25519 SHA256:Fb+eyKkBDlwHGAOd4/rw9SRAbkgHk explicit &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug2: pubkey_prepare: done &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: send packet: type 5 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: receive packet: type 6 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug2: service_accept: ssh-userauth &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: send packet: type 50 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: &lt;STRONG&gt;receive packet: type 51 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: start over, passed a different list publickey,password,keyboard-interactive &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: authmethod_lookup publickey &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: remaining preferred: keyboard-interactive,password &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: authmethod_is_enabled publickey &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: Next authentication method: publickey &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: Offering public key: AWSKey.pem ED25519 SHA256:Fb+eyKkBDlwHGAOd4/rw9SRAbcHk explicit &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: send packet: type 50 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug2: we sent a publickey packet, wait for reply &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: &lt;STRONG&gt;receive packet: type 51 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug2: we did not send a packet, disable method &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: authmethod_lookup keyboard-interactive &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;debug3: remaining preferred: password&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 00:06:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/vm-series-in-the-public-cloud/aws-keypair-failing-authentication-to-pa-vm/m-p/516934#M1684</guid>
      <dc:creator>SteveBrown808</dc:creator>
      <dc:date>2022-10-06T00:06:16Z</dc:date>
    </item>
  </channel>
</rss>

