!7 static S host = "tinybrain.de"; static S user = "root"; static S remotePath = "/tmp/testfile.txt"; p-tt { print("Connecting to " + host + " as " + user + "..."); byte[] data = toUtf8("Hello world!"); print("Uploading to: " + remotePath); scpUpload(user, host, remotePath, l(data), new ByteArrayInputStream(data)); print("Done! Listing..."); print(quickSSH2(user, host, "ls -l " + bashQuote(remotePath), 30)); print("Printing file"); print(quickSSH2(user, host, "cat " + bashQuote(remotePath), 30)); }