<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Ssh - Tag - NTOHL</title>
        <link>https://www.ntohl.com/en/tags/ssh/</link>
        <description>Ssh - Tag - NTOHL</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>wyatt@ntohl.com (Wyatt Sun)</managingEditor>
            <webMaster>wyatt@ntohl.com (Wyatt Sun)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Mon, 05 Jun 2023 17:28:00 &#43;0800</lastBuildDate><atom:link href="https://www.ntohl.com/en/tags/ssh/" rel="self" type="application/rss+xml" /><item>
    <title>A case of vscode key-based login failing</title>
    <link>https://www.ntohl.com/en/ssh_rsa_no_langer_safe/</link>
    <pubDate>Mon, 05 Jun 2023 17:28:00 &#43;0800</pubDate>
    <author>wyatt@ntohl.com (Wyatt Sun)</author>
    <guid>https://www.ntohl.com/en/ssh_rsa_no_langer_safe/</guid>
    <description><![CDATA[<div class="featured-image">
                <img src="/images/posts/ssh_rsa_no_langer_safe.svg" referrerpolicy="no-referrer">
            </div><h2 id="background">Background</h2>
<p>After some system update, vscode&rsquo;s ssh server started asking for a password. The machine sleeps a lot, and re-entering the password for every open project was not acceptable.</p>
<h2 id="diagnosis">Diagnosis</h2>
<p>The vscode output panel showed only the password prompt and nothing that explained why:</p>
<blockquote>
<p>[16:36:47.687] Remote-SSH version: <a href="mailto:remote-ssh@0.102.0" rel="">remote-ssh@0.102.0</a><br>
[16:36:47.688] SSH Resolver called for &ldquo;ssh-remote+x.x.x.x&rdquo;, attempt 1<br>
[16:36:49.196] Found password prompt in other window<br>
[16:36:49.197] Showing password prompt</p>
</blockquote>
<p>So I ran <code>ssh root@x.x.x.x -v</code> in a terminal and read the debug output:</p>]]></description>
</item>
</channel>
</rss>
