diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/credentials/GRemoteSession.kt b/src/main/kotlin/com/jetpackduba/gitnuro/credentials/GRemoteSession.kt index f868cad..f2e976e 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/credentials/GRemoteSession.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/credentials/GRemoteSession.kt @@ -38,6 +38,7 @@ class GRemoteSession @Inject constructor( val session = processSession.get() session.setOptions(LibSshOptions.SSH_OPTIONS_HOST, uri.host) session.setOptions(LibSshOptions.SSH_OPTIONS_USER, uri.user) + session.setOptions(LibSshOptions.SSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES, "ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,rsa-sha2-512,rsa-sha2-256,ssh-dss") session.loadOptionsFromConfig() session.connect()