I am using jenkins 2.141 but I have had this problem since at least jenkins 2.122
I can create and delete jobs using the java cli For example wget http://jenkins/hnd/jnlpJars/jenkins-cli.jar -o /var/tmp/jenkins-cli.log -O $HOME/bin/jenkins-cli.jar java -jar $HOME/bin/jenkins-cli.jar -user $LOGNAME -ssh -s http://jenkins/hnd create-job foo < foo/config.xml java -jar $HOME/bin/jenkins-cli.jar -user $LOGNAME -ssh -s http://jenkins/hnd delete-job foo But attempts to use java -jar $HOME/bin/jenkins-cli.jar -user eb888198 -ssh -s http://jenkins/hnd enable-job foo Nov 15, 2018 12:45:22 PM org.apache.sshd.client.config.hosts.ConfigFileHostEntryResolver reloadHostConfigEntries INFO: resolveEffectiveResolver($LOGNAME@jenkins:45259) loaded 1 entries from $HOME/.ssh/config ERROR: object is not an instance of declaring class I can do this successfully on other Jenkins instances but not this one, which implies some sort of configuration issue. There aren't any error messages in the logs when I run the commands -- Eric Boehm Broadcom -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2c3e881d-a4f4-45a7-8840-a52d6b99bc18%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.