[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to Create object for Channel class / using C++ wrapper
[Thread Prev] | [Thread Next]
- Subject: Re: how to Create object for Channel class / using C++ wrapper
- From: chandu <chandu73@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 12 Oct 2012 17:01:19 +0800
- To: libssh@xxxxxxxxxx
Hi, connected to server with password authorization able to get the Banner from server. after these steps I created the Channel object *ssh::Channel channel (session) *; to invoke Channel Constructor , here only the segmentation problem coming. if i comment the *ssh::Channel channel (session) *; then no segmentation problem. it works to connect to server and disconnect. On Fri, Oct 12, 2012 at 4:47 PM, Andreas Schneider <asn@xxxxxxxxxxxxxx>wrote: > On Friday 12 October 2012 16:35:34 chandu wrote: > > Hello > > I am trying to create a object for Channel Class, to invoke constructor > of > > Channel class. > > below is how I am creating the objects > > > > *ssh::Session session; // object of Session class > > ssh::Channel channel(session); // object of Channel class with > parameter.* > > > > it compiles with no problems, On running it giving segmentation fault. > > > > can any one suggest me where I am doing mistake. > > You should connect to a server first ... > > ssh::Session session; > > session.setOption(SSH_OPTIONS_HOST,"localhost"); > > session.connect(); > session.userauthAutopubkey(); > > ssh::Channel channel(session); > > > -- > Andreas Schneider GPG-ID: F33E3FC6 > www.cryptomilk.org asn@xxxxxxxxxxxxxx > > > -- Thanks & Regards Chandu
Re:how to Create object for Channel class / using C++ wrapper | chandu <chandu73@xxxxxxxxx> |
Re: how to Create object for Channel class / using C++ wrapper | Andreas Schneider <asn@xxxxxxxxxxxxxx> |