Forum Discussion
5 years ago
2 hours ago, mnagel said:It will use whatever you provide. If it is a name and the collector can resolve the name, then it should work. I just looked at the code and I don't see where it would have emitted sftp:// at all -- that is a URL format and it wants just the hostname (or IP). If you included sftp:// in the hostname, please remove it :).
def session = jsch.getSession(user, host, port.toInteger()); // Get a session session.setPassword(pass) // Set the password to use for the session
Thank you so much. I was able to script to connect to the sftp site.
Related Content
- 7 months ago
- 7 months ago
- 5 months ago