Skip to content
Advertisement

Maven install failed: com.jcraft.jsch.JSchException: Auth cancel

I try to deploy to my work VDS. I have bad error and don`t know how solve it. I can’t figure out what the problem is. Through the terminal, the connection via the SSH protocol is stable

[ERROR] Failed to execute goal org.local.maven.plugins:dpkg-maven-plugin:1.13:install (install) on project service: Execution install of goal org.local.maven.plugins:dpkg-maven-plugin:1.13:install failed: com.jcraft.jsch.JSchException: Auth fail -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.local.maven.plugins:dpkg-maven-plugin:1.13:install (install) on project service: Execution install of goal org.local.maven.plugins:dpkg-maven-plugin:1.13:install failed: com.jcraft.jsch.JSchException: Auth fail
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

Advertisement

Answer

Most likely, this error occurs due to a passphrase or a non-default name of the SSH key. Try changing the private and public key to id_rsa and id_rsa.pub To remove the passphrase, use ssh-keygen -p

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement