Re: dbclient v2019.78: proxyJump

2020-05-04 Thread Adrian Fiergolski
Hi Matt,
Thank you for your reply.
I have just given it a try and in what you proposed,
/'username1@server1,username2' /becomes a user name and server2 is a
hostname.
At the end, I solved the issue by switching to openssh-client.

Cheers,
Adrian
 
On 04.05.2020 at 15:21, Matt Johnston wrote:
> Hi Adrian,
>
> With dropbear you should be able to list the hosts comma separated
>
> dbclient -i /mydir/id_rsa  username1@server1,username2@server2
>
> Does that work? It should do something equivalent to the first one though, 
> unless I've missed something.
>
> Cheers,
> Matt
>
>> On Sun 3/5/2020, at 11:38 pm, Adrian Fiergolski  
>> wrote:
>>
>> Hi,
>>
>> I am having troubles connecting to another host though a ssh proxy. The
>> command:
>>
>> $>dbclient -i /my_dir/id_rsa -J "dbclient -i /my_dir/id_rsa
>> username1@server1" username2@server2
>>
>> and  
>>
>> $>dbclient -i /my_dir/id_rsa -J "dbclient -t -i /my_dir/id_rsa
>> username1@server1" username2@server2
>>
>> return:
>>
>> dbclient: Failed reading termmodes
>> dbclient: Connection to username1@server1:22 exited: Failed to set
>> raw TTY mode
>> dbclient: Connection to username2@server2:22 exited: Remote closed
>> the connection
>>
>> I have also tried 
>>
>> $>dbclient -i /my_dir/id_rsa -J "dbclient -T -i /my_dir/id_rsa
>> username1@server1" username2@server2
>>
>> but it doesn't connect to the server2 neither.
>>
>> The connection to the first host
>>
>> dbclient -i /my_dir/id_rsa username1@server1
>>
>> works properly.
>>
>> What am I doing wrong? How to connect to the final server through the
>> ssh proxy using dropbear?
>>
>> Regards,
>>
>> Adrian
>>
>>



signature.asc
Description: OpenPGP digital signature


Re: dbclient v2019.78: proxyJump

2020-05-04 Thread Matt Johnston
Hi Adrian,

With dropbear you should be able to list the hosts comma separated

dbclient -i /mydir/id_rsa  username1@server1,username2@server2

Does that work? It should do something equivalent to the first one though, 
unless I've missed something.

Cheers,
Matt

> On Sun 3/5/2020, at 11:38 pm, Adrian Fiergolski  
> wrote:
> 
> Hi,
> 
> I am having troubles connecting to another host though a ssh proxy. The
> command:
> 
> $>dbclient -i /my_dir/id_rsa -J "dbclient -i /my_dir/id_rsa
> username1@server1" username2@server2
> 
> and  
> 
> $>dbclient -i /my_dir/id_rsa -J "dbclient -t -i /my_dir/id_rsa
> username1@server1" username2@server2
> 
> return:
> 
> dbclient: Failed reading termmodes
> dbclient: Connection to username1@server1:22 exited: Failed to set
> raw TTY mode
> dbclient: Connection to username2@server2:22 exited: Remote closed
> the connection
> 
> I have also tried 
> 
> $>dbclient -i /my_dir/id_rsa -J "dbclient -T -i /my_dir/id_rsa
> username1@server1" username2@server2
> 
> but it doesn't connect to the server2 neither.
> 
> The connection to the first host
> 
> dbclient -i /my_dir/id_rsa username1@server1
> 
> works properly.
> 
> What am I doing wrong? How to connect to the final server through the
> ssh proxy using dropbear?
> 
> Regards,
> 
> Adrian
> 
>