Skip to content
Advertisement

Tag: cisco

Providing input/subcommands to command executed over SSH with JSch

I’m trying to manage router via Java application using Jcraft Jsch library. I’m trying to send Router Config via TFTP server. The problem is in my Java code because this works with PuTTY. This my Java code: I get Line has an invalid autocommand ‘192.168.50.1’ The problem is how can I run those successive commands. Answer Calling ChannelExec.setCommand multiple times

Advertisement