LM Expect packages and ed25519?
Is there any way to usessh-ed25519 instead of ssh-rsa in Expect scripts? Some recent FortiOS OS changes removed the ability to do ssh-rsa, and only ssh-ed25519 is allowed, so our FortiOS_Config configsource doesnt work anymore, but we do have the latest configsource. So I was wondering if anyone had come across this, and if there is any way in the groovy code to let Expect usessh-ed25519, or if there was an alternate package to “com.santaba.agent.groovyapi.expect.Expect”?Solved74Views12likes2CommentsEntering enable mode using JSch
Does anybody have any example code on how to enter enable mode when using JSch? I already have the script working for 95% of my devices, so i don’t want to have to switch to expect. The channel mode is currently exec, which i think is the issue. It’s trying to execute `enable\n${enable_pass}\n${cmd}` all at once and the device is choking on it. Would rather not have to switch to shell mode, but if there’s no way to do it without shell mode, i guess i’ll have to take a stab at it.Solved204Views13likes3Comments