Browse Source

No reason for a dummy passphrase.

Pointed out by:	Atsuhiko Yamanaka <ymnk at jcraft dot com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274236 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
65ce43ffe8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java View File

@@ -195,7 +195,7 @@ public abstract class SSHBase extends Task implements LogListener {
protected Session openSession() throws JSchException { protected Session openSession() throws JSchException {
JSch jsch = new JSch(); JSch jsch = new JSch();
if (null != userInfo.getKeyfile()) { if (null != userInfo.getKeyfile()) {
jsch.addIdentity(userInfo.getKeyfile(), "passphrase");
jsch.addIdentity(userInfo.getKeyfile());
} }


if( knownHosts != null ) { if( knownHosts != null ) {


Loading…
Cancel
Save