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
Post a Comment