The SecureShell component represents a secure connection using the SSH (Secure Shell) protocol. The component uses SSH to log into remote machines, transfer files, and execute remote commands. Using this component, you can verify the identity of the host to which you are connecting. Successful host verification indicates that the connection is encrypted end-to-end, meaning that your SSH client has established a secure connection with the SSH server itself, and no intermediate machines have access to that connection.
do
//SecureShell.fingerPrint = "1028: ac c8 b2 5f 61 bd a8 c0 e9 13 a c5 8 79 a9 ed"
//SecureShell.knownHostsFile = "/tmp/knownHosts"
SecureShell.verifyHosts = false
connectTo SecureShell
using host = "remote_server",
username = "username",
password = "userpasswd"
getFileWith SecureShell
using remoteFile = "example_file",
localFile = "/tmp/example_file"
putFileWith SecureShell
using localFile = "/tmp/example_file",
remoteFile = "/example_file_copy"
execute SecureShell
using command = "ls"
display "stdout for 'ls': " + SecureShell.standardOutput
display "stderr: " + SecureShell.standardError
on exit
disconnectFrom SecureShell
end