SwifterSwiftSSH
Requirements
- XCode >= 13.2.1
- Swift Toolchain >= 5.5.2
Basic usage
Podfile:
pod 'SwifterSwiftSSH'
Swift:
import SwifterSwiftSSH
// ...
let options = SSHOption(host: host, port: port, username: username, password: password);
let ssh = SSH(option: options);
let result = try await ssh.exec("ls -lah");
print(result.stdout);