This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Here's how a Linux(Unix) ssh client would do that against a remote Linux or Unix host:
ssh user@remotehost cat thefile.txt
If memory serves, Windows uses the "TYPE" command to list what's in a text file. Linux uses "cat" (it's an old joke and a cruel one), and "type" checks a file's type (not that that matters here).
However, Windows doesn't have a remote SSH server last time I remembered unless maybe PuTTY offers one as a third-party add-on. Which means that if your Java SSH app really does connect as an SSH client to a Windows computer, we need to know what on the Windows computer the Java app is talking to.
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.