mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix - updated authentication via ssh key
This commit is contained in:
parent
dbfc44ec6d
commit
0f2370d847
1 changed files with 4 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import time
|
|||
import sys
|
||||
import six
|
||||
import threading
|
||||
import platform
|
||||
|
||||
from openpype.api import Logger
|
||||
from openpype.api import get_system_settings
|
||||
|
|
@ -406,8 +407,9 @@ class SFTPHandler(AbstractProvider):
|
|||
}
|
||||
if self.sftp_pass and self.sftp_pass.strip():
|
||||
conn_params['password'] = self.sftp_pass
|
||||
if self.sftp_key:
|
||||
conn_params['private_key'] = self.sftp_key
|
||||
if self.sftp_key: # expects .pem format, not .ppk!
|
||||
conn_params['private_key'] = \
|
||||
self.sftp_key[platform.system().lower()]
|
||||
if self.sftp_key_pass:
|
||||
conn_params['private_key_pass'] = self.sftp_key_pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue