Simple POC for SFTP in java. Motivation is to replace ganymed-ssh-2 which is restricted to ssh-rsa or ssh-dss for signature algorithms & key type.
In particular, signatures with those algorithms are deprecated as of ssh v8.8 as well AND the SHA1 crpyto family (which includes said algorithsm) are disabled by default on RHEL operating systems.
javac -cp ".:lib/*" -d classes src/**/**/*.java
java -cp ".:lib/*:classes" src/com/example/Main# This is out of date don't do this
jar cf sftp-poc.jar classes/*.classNote that there is also an included build-and-run.sh which handles this process for you