ssh - "Unable to send channel-open request" when using ssh2 crate -


i'm trying implement module interacting network gear on ssh.

my code generates error ssh session creation don't know how fix.

here code:

extern crate ssh2;  // cut init code  match ssh.authenticated() {     true => println!("logged in !"),     false => println!("failed login"), };  let mut channel = match ssh.channel_session() {     ok(ch) => ch,     err(e) => panic!("unable create channel: {}", e), }; 

and here result:

running `target/debug/e6000` trying connect connection successfull logged in ! thread '<main>' panicked @ 'unable create channel: [-7] unable send channel-open request', src/main.rs:25 

i see on device authentication successful, why can't create channel?


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -