Package io.trino.tempto.ssh
Interface SshClient
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
JSchSshClient
Simple SSH client.
-
Method Summary
-
Method Details
-
command
-
execute
Executes command on a remote machine.- Parameters:
command- Command to be executed on remote machine.- Returns:
- CLIProcess
-
execute
-
upload
Uploads file to a remote machine. It works like SCP.- Parameters:
file- Local path to file which is to be uploadedremotePath- Destination path for file on remote machine.
-