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 <a.fiergol...@gmail.com> > 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 > >