Sharing Host SSH Keys with Embedded Platforms: Difference between revisions

m
mNo edit summary
Line 53: Line 53:
Your host keys are only valid in the current SSH session and are not stored anywhere.
Your host keys are only valid in the current SSH session and are not stored anywhere.
}}
}}


=== Steps to Forward SSH Keys ===
=== Steps to Forward SSH Keys ===
Line 59: Line 58:
==== Enable SSH Agent Forwarding on Your Host:====
==== Enable SSH Agent Forwarding on Your Host:====
When initiating an SSH connection to the embedded platform, use the '''-A''' option with the ssh command:
When initiating an SSH connection to the embedded platform, use the '''-A''' option with the ssh command:
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
ssh -A user@embedded_platform
ssh -A user@embedded_platform
Line 87: Line 87:
====Verify Connection on the Embedded Platform:====
====Verify Connection on the Embedded Platform:====
Once logged into the embedded platform, you can verify that the SSH agent forwarding works by listing the available SSH keys with:
Once logged into the embedded platform, you can verify that the SSH agent forwarding works by listing the available SSH keys with:
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
ssh-add -l
ssh-add -l