B4J Question SFTP debug and release

moore_it

Well-Known Member
Licensed User
Longtime User
Hi,
i've an app that download a file from a SFTP server.
If i try in debug mode the download work fine.
if i create a package standalone (.exe) the download not start because the server SFTP is not found.
It's very strange have any suggestions.
Thanks

Found this error:

net.schmizz.sshj.transport.TransportException: Unable to reach a settlement: [diffie-hellman-group1-sha1, diffie-hellman-group-exchange-sha1] and [curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256]
 
Last edited:

ajk

Active Member
Licensed User
Longtime User
old openSSH ...
possible fix in centos stream:
add /etc/ssh/sshd_config
in sshd_config add
KexAlgorithms +diffie-hellman-group1-sha1
Ciphers +aes128-cbc
regenerate keys: ssh-keygen -A
restart ssh: service ssh restart
 
Last edited:
Upvote 0
Top