<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-IE;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-IE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:12.0pt'>Hello,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>I am ssh’ing from Server-A to Server-B. Dropbear client/server is on Server-A and openssh client/server is on Server-B. </span><code><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";border:none windowtext 1.0pt;padding:0cm'>~/.ssh/ncp_key_dropbear in Server-A is of the correct Dropbear format.</span></code><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>I can ssh from A to B like this:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'># cd </span><code><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";border:none windowtext 1.0pt;padding:0cm'>~/.ssh</span></code><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=MsoNormal style='vertical-align:baseline'><span style='font-size:10.0pt;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:EN-IE'># ssh -i ncp_key_dropbear root@192.168.1.124 -p 22</span><span style='font-size:10.0pt;mso-fareast-language:EN-IE'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p style='margin-top:0cm;background:white;vertical-align:baseline'><span style='font-family:"Calibri","sans-serif"'>In Dropbear is it possible in to create </span><span style='font-size:11.5pt;font-family:"Calibri","sans-serif";color:#242729'>a ~/.ssh/config file on Server-A like this:<o:p></o:p></span></p><pre style='vertical-align:baseline;margin-bottom:calc(var(--s-prose-spacing) + 0.4em);font-variant-ligatures: normal;font-variant-caps: normal;font-variant-numeric: inherit;font-variant-east-asian: inherit;font-stretch: inherit;box-sizing: inherit;max-height: 600px;background-color:var(--highlight-bg);border-radius: 5px;overflow-wrap: normal;color:var(--highlight-color);orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;overflow:auto;word-spacing:0px'><code><span style='font-family:"Calibri","sans-serif";border:none windowtext 1.0pt;padding:0cm'>Host ncp<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:"Calibri","sans-serif";border:none windowtext 1.0pt;padding:0cm'>        User root<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:"Calibri","sans-serif";border:none windowtext 1.0pt;padding:0cm'>        Port 22<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:"Calibri","sans-serif";border:none windowtext 1.0pt;padding:0cm'>        IdentityFile ~/.ssh/ncp_key_dropbear<o:p></o:p></span></code></pre><pre style='vertical-align:baseline'><code><span style='font-family:"Calibri","sans-serif";border:none windowtext 1.0pt;padding:0cm'>        HostName 192.168.1.124</span></code><span style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></pre><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>… and then ssh like this?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'># ssh ncp<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>When I do that on a host running OpenWrt I get the error:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>root@OpenWrt:~/.ssh# ssh ncp<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>ssh: Connection to root@ncp:22 exited: Connect failed: Error resolving 'ncp' port '22'. Name does not resolve<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>Actually I get the same error even if I change the Port, in the config file, to 1022 even though the sshd on the remote host is also listening on port 1022.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>I CAN set up a config file on Server-B, that has an openssh client, and I can ssh from B to A like this and it works:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'># ssh openwrt<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>Thank you,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>Flex<o:p></o:p></span></p></div></body></html>