<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ssh on csegura</title><link>http://blog.romheat.net/tags/ssh/</link><description>Recent content in Ssh on csegura</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 17 Aug 2022 05:17:17 +0100</lastBuildDate><atom:link href="http://blog.romheat.net/tags/ssh/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker Context (work notes)</title><link>http://blog.romheat.net/posts/2022/22_08_17_docker_context/</link><pubDate>Wed, 17 Aug 2022 05:17:17 +0100</pubDate><guid>http://blog.romheat.net/posts/2022/22_08_17_docker_context/</guid><description>&lt;h1 id="working-on-remote-docker-host-using-docker-context">Working on remote Docker Host using docker context&lt;/h1>
&lt;h2 id="ssh-keys">SSH keys&lt;/h2>
&lt;p>In order to use remote Docker host, as a prerequisite you need SSH enabled (required login using SSH keys).&lt;/p>
&lt;h3 id="generate-or-find-your-public-ssh-key">Generate or find your public SSH key&lt;/h3>
&lt;p>If the file does not exist, generate the SSH key-pair using following command&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>ssh-keygen -t rsa -b &lt;span style="color:#ae81ff">4096&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="setting-up-ssh-keys-to-remote-machine">Setting up SSH keys to remote machine&lt;/h2>
&lt;h3 id="copying-your-public-ssh-key-to-machine">Copying your public ssh key to machine&lt;/h3>
&lt;p>You can use password-based authentication to get into linux machine for the first time, and then use the following command:&lt;/p></description></item><item><title>SSH</title><link>http://blog.romheat.net/posts/2012/12_02_01_ssh/</link><pubDate>Wed, 01 Feb 2012 00:00:00 +0100</pubDate><guid>http://blog.romheat.net/posts/2012/12_02_01_ssh/</guid><description>&lt;h1 id="ssh-related">SSH related&lt;/h1>
&lt;p>ssh-copy-id windows -&amp;gt; linux&lt;/p>
&lt;pre tabindex="0">&lt;code>cat ~/.ssh/id_rsa.pub | ssh root@agora &amp;#34;cat &amp;gt;&amp;gt; ~/.ssh/authorized_keys&amp;#34;
&lt;/code>&lt;/pre>&lt;p>github&lt;/p>
&lt;pre tabindex="0">&lt;code>ssh-keygen -t ed25519 -C &amp;#34;your_email@example.com&amp;#34;
ssh-keygen -t rsa -b 4096 -C &amp;#34;your_email@example.com&amp;#34; (old)
&lt;/code>&lt;/pre>&lt;p>github config ~/.ssh/config&lt;/p>
&lt;pre tabindex="0">&lt;code>Host github.com
 Hostname github.com
 PreferredAuthentications publickey
 IdentityFile ~/.ssh/gh
&lt;/code>&lt;/pre>&lt;p>ssh-agent&lt;/p>
&lt;pre tabindex="0">&lt;code>$ eval &amp;#34;$(ssh-agent -s)&amp;#34;
&amp;gt; Agent pid 59566
&lt;/code>&lt;/pre>&lt;p>add key to agent&lt;/p>
&lt;pre tabindex="0">&lt;code>ssh-add ~/.ssh/id_ed25519 
&lt;/code>&lt;/pre>&lt;p>Windows ssh-agent&lt;/p>
&lt;pre tabindex="0">&lt;code>Set-Service ssh-agent -StartupType Manual
Start-Service ssh-agent
&lt;/code>&lt;/pre></description></item></channel></rss>