[BangPypers] Multilevel SSH in Python
davidsnt at gmail.com
Tue Oct 16 13:36:53 CEST 2012
Thank you for the quick response.
nc and proxycommand are more of a linux way of doing it, but is there any
python oriented way, like I do an ssh and get an object with that I again
do once more ssh etc,
On Tue, Oct 16, 2012 at 4:56 PM, Noufal Ibrahim <noufal at nibrahim.net.in>wrote:
> davidsnt <davidsnt at gmail.com> writes:
> > Hello Team.
> > I need some help in building a multilevel ssh program in Python.
> > My requirement is that I have to connect to ServerA and from ServerA
> > connect to ServerB and from ServerB connect to ServerC and execute few
> > of commands and collect the results.
> > I dont have direct access to ServerB or ServerC only from ServerA I can
> > move on to ServerB and then on to ServerC.
> The regular ssh command has a proxycommand directive which you can use
> to ssh through multiple hosts similar to what you need
> I think you should be able to reuse this rather than write all the stuff
> BangPypers mailing list
> BangPypers at python.org
More information about the BangPypers