Enabled support by default for all supported formats by libssh

Fixes #108
This commit is contained in:
Abdelilah El Aissaoui 2023-05-09 18:30:20 +02:00
parent 776a76332b
commit 905f7805bf
No known key found for this signature in database
GPG key ID: 7587FC860F594869

View file

@ -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()