Re: Does Dropbear know what a ~/.ssh/config file is?

2021-01-06 Thread Matt Johnston
Hi Sean,

I don't currently have plans to implement a config file, but I'd be happy to 
take a patch if someone wants to make it work.
I think it would need to be a separate config file to OpenSSH's, some 
unsupported options might be important.

Personally I've tended to make ~/bin scripts to ssh (dbclient) to hosts I use.

Sorry for the noise with the other reply, that was meant to be off-list.

Cheers,
Matt



> On Mon 4/1/2021, at 4:54 pm, Sean Warner  wrote:
> 
> Hi Matt,
> 
> And as for my problem.. do you have any plans to add a user config file that 
> can take hostname, port and identity details like openssh?
> 
> Cheers,
> 
> Flex
> 
> On Mon, 4 Jan 2021, 05:41 Matt Johnston,  > wrote:
> Sounds like your problem is with android not Dropbear :)
> 
> On 4 January 2021 4:57:30 am AWST, Ruben Safir  > wrote:
> dropbear is a waste of time and it doesn't even work.
> 
> I don't know why it is Fing Hard for the table with android can't have
> an openssh daman running so we can tranfer files on and off the image.
> 
> Everything about android is designed to just lock out the user.
> 
> 
> 
> On 1/3/21 8:57 AM, Sean Warner wrote:
> Hello,
> 
>  
> 
> 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. ~/.ssh/ncp_key_dropbear
> in Server-A is of the correct Dropbear format.
> 
>  
> 
> I can ssh from A to B like this:
> 
> # cd ~/.ssh
> 
> # ssh -i ncp_key_dropbear root@192.168.1.124  -p 22
> 
>  
> 
> In Dropbear is it possible in to create a ~/.ssh/config file on Server-A
> like this:
> 
> Host ncp
> User root
> Port 22
> IdentityFile ~/.ssh/ncp_key_dropbear
> HostName 192.168.1.124
> 
>  
> 
> . and then ssh like this?
> 
> # ssh ncp
> 
>  
> 
> When I do that on a host running OpenWrt I get the error:
> 
>  
> 
> root@OpenWrt:~/.ssh# ssh ncp
> 
>  
> 
> ssh: Connection to root@ncp:22 exited: Connect failed: Error resolving 'ncp'
> port '22'. Name does not resolve
> 
>  
> 
> 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.
> 
>  
> 
> 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:
> 
> # ssh openwrt
> 
>  
> 
> Thank you,
> 
>  
> 
> Flex
> 
> 
> 



Re: Does Dropbear know what a ~/.ssh/config file is?

2021-01-04 Thread Sean Warner
Hi Matt,

And as for my problem.. do you have any plans to add a user config file
that can take hostname, port and identity details like openssh?

Cheers,

Flex

On Mon, 4 Jan 2021, 05:41 Matt Johnston,  wrote:

> Sounds like your problem is with android not Dropbear :)
>
> On 4 January 2021 4:57:30 am AWST, Ruben Safir  wrote:
>>
>> dropbear is a waste of time and it doesn't even work.
>>
>> I don't know why it is Fing Hard for the table with android can't have
>> an openssh daman running so we can tranfer files on and off the image.
>>
>> Everything about android is designed to just lock out the user.
>>
>>
>>
>> On 1/3/21 8:57 AM, Sean Warner wrote:
>>
>>> Hello,
>>>
>>>
>>>
>>> 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. ~/.ssh/ncp_key_dropbear
>>> in Server-A is of the correct Dropbear format.
>>>
>>>
>>>
>>> I can ssh from A to B like this:
>>>
>>> # cd ~/.ssh
>>>
>>> # ssh -i ncp_key_dropbear root@192.168.1.124 -p 22
>>>
>>>
>>>
>>> In Dropbear is it possible in to create a ~/.ssh/config file on Server-A
>>> like this:
>>>
>>> Host ncp
>>> User root
>>> Port 22
>>> IdentityFile ~/.ssh/ncp_key_dropbear
>>> HostName 192.168.1.124
>>>
>>>
>>>
>>> . and then ssh like this?
>>>
>>> # ssh ncp
>>>
>>>
>>>
>>> When I do that on a host running OpenWrt I get the error:
>>>
>>>
>>>
>>> root@OpenWrt:~/.ssh# ssh ncp
>>>
>>>
>>>
>>> ssh: Connection to root@ncp:22 exited: Connect failed: Error resolving 'ncp'
>>> port '22'. Name does not resolve
>>>
>>>
>>>
>>> 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.
>>>
>>>
>>>
>>> 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:
>>>
>>> # ssh openwrt
>>>
>>>
>>>
>>> Thank you,
>>>
>>>
>>>
>>> Flex
>>>
>>>
>>>
>>


Re: Does Dropbear know what a ~/.ssh/config file is?

2021-01-03 Thread Matt Johnston
Sounds like your problem is with android not Dropbear :)

On 4 January 2021 4:57:30 am AWST, Ruben Safir  wrote:
>dropbear is a waste of time and it doesn't even work.
>
>I don't know why it is Fing Hard for the table with android can't have
>an openssh daman running so we can tranfer files on and off the image.
>
>Everything about android is designed to just lock out the user.
>
>
>
>On 1/3/21 8:57 AM, Sean Warner wrote:
>> Hello,
>> 
>>  
>> 
>> 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.
>~/.ssh/ncp_key_dropbear
>> in Server-A is of the correct Dropbear format.
>> 
>>  
>> 
>> I can ssh from A to B like this:
>> 
>> # cd ~/.ssh
>> 
>> # ssh -i ncp_key_dropbear root@192.168.1.124 -p 22
>> 
>>  
>> 
>> In Dropbear is it possible in to create a ~/.ssh/config file on
>Server-A
>> like this:
>> 
>> Host ncp
>> User root
>> Port 22
>> IdentityFile ~/.ssh/ncp_key_dropbear
>> HostName 192.168.1.124
>> 
>>  
>> 
>> . and then ssh like this?
>> 
>> # ssh ncp
>> 
>>  
>> 
>> When I do that on a host running OpenWrt I get the error:
>> 
>>  
>> 
>> root@OpenWrt:~/.ssh# ssh ncp
>> 
>>  
>> 
>> ssh: Connection to root@ncp:22 exited: Connect failed: Error
>resolving 'ncp'
>> port '22'. Name does not resolve
>> 
>>  
>> 
>> 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.
>> 
>>  
>> 
>> 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:
>> 
>> # ssh openwrt
>> 
>>  
>> 
>> Thank you,
>> 
>>  
>> 
>> Flex
>> 
>> 
>
>
>-- 
>So many immigrant groups have swept through our town
>that Brooklyn, like Atlantis, reaches mythological
>proportions in the mind of the world - RI Safir 1998
>http://www.mrbrklyn.com
>DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
>
>http://www.nylxs.com - Leadership Development in Free Software
>http://www.brooklyn-living.com
>
>Being so tracked is for FARM ANIMALS and extermination camps,
>but incompatible with living as a free human being. -RI Safir 2013


Re: Does Dropbear know what a ~/.ssh/config file is?

2021-01-03 Thread Thomas De Schampheleire
Hi Sean,

El dom, 3 ene 2021 a las 15:04, Sean Warner () escribió:
>
> Hello,
>
>
>
> 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. ~/.ssh/ncp_key_dropbear in Server-A 
> is of the correct Dropbear format.
>
>
>
> I can ssh from A to B like this:
>
> # cd ~/.ssh
>
> # ssh -i ncp_key_dropbear root@192.168.1.124 -p 22
>
>
>
> In Dropbear is it possible in to create a ~/.ssh/config file on Server-A like 
> this:
>
> Host ncp
>
> User root
>
> Port 22
>
> IdentityFile ~/.ssh/ncp_key_dropbear
>
> HostName 192.168.1.124
>

This file and syntax is openssh specific, it does not work with dropbear, AFAIK.

>
>
> … and then ssh like this?
>
> # ssh ncp
>
>
>
> When I do that on a host running OpenWrt I get the error:
>
>
>
> root@OpenWrt:~/.ssh# ssh ncp
>
>
>
> ssh: Connection to root@ncp:22 exited: Connect failed: Error resolving 'ncp' 
> port '22'. Name does not resolve
>

You could map the hostname to an IP address by adding an entry in
/etc/hosts, something like:

192.168.1.124  ncp


This file will be interpreted, not by dropbear directly but via the C library.

You do not need to specify port 22 explicitly. It is the standard port
for SSH and is thus default. A port only needs to be specified if it
is _not_ 22, like 1022.

I'm not aware of a way to specify the key file to use in a config
file, but you could use the default filename ~/.ssh/id_dropbear in
which case you don't need to specify it explicitly.

Best regards,
Thomas


Re: Does Dropbear know what a ~/.ssh/config file is?

2021-01-03 Thread Ruben Safir
dropbear is a waste of time and it doesn't even work.

I don't know why it is Fing Hard for the table with android can't have
an openssh daman running so we can tranfer files on and off the image.

Everything about android is designed to just lock out the user.



On 1/3/21 8:57 AM, Sean Warner wrote:
> Hello,
> 
>  
> 
> 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. ~/.ssh/ncp_key_dropbear
> in Server-A is of the correct Dropbear format.
> 
>  
> 
> I can ssh from A to B like this:
> 
> # cd ~/.ssh
> 
> # ssh -i ncp_key_dropbear root@192.168.1.124 -p 22
> 
>  
> 
> In Dropbear is it possible in to create a ~/.ssh/config file on Server-A
> like this:
> 
> Host ncp
> User root
> Port 22
> IdentityFile ~/.ssh/ncp_key_dropbear
> HostName 192.168.1.124
> 
>  
> 
> . and then ssh like this?
> 
> # ssh ncp
> 
>  
> 
> When I do that on a host running OpenWrt I get the error:
> 
>  
> 
> root@OpenWrt:~/.ssh# ssh ncp
> 
>  
> 
> ssh: Connection to root@ncp:22 exited: Connect failed: Error resolving 'ncp'
> port '22'. Name does not resolve
> 
>  
> 
> 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.
> 
>  
> 
> 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:
> 
> # ssh openwrt
> 
>  
> 
> Thank you,
> 
>  
> 
> Flex
> 
> 


-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002

http://www.nylxs.com - Leadership Development in Free Software
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013