Close the SFTP client.
109110111112113114115116117118119
// Download a file sftp.get("somefile.txt", "anotherfile.txt"); // Remove a directory or file sftp.rm("j2ssh"); // Quit sftp.quit(); ssh.disconnect(); } } catch (Exception e) { e.printStackTrace();