Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Commit b999a7fd authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fixes sftp client

parent cd81d037
......@@ -41,7 +41,7 @@ class SftpClient(sftpSettings: Properties) : Closeable {
init {
try {
ssh.addHostKeyVerifier(PromiscuousVerifier())
ssh.connect(sftpSettings.getProperty("host"))
ssh.connect(sftpSettings.getProperty("host"), sftpSettings.getProperty("port").toInt())
ssh.authPassword(sftpSettings.getProperty("user"), sftpSettings.getProperty("password"))
instance = ssh.newSFTPClient()
} catch (ex: UserAuthException) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment