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);On this page
Languages
C57.8%Swift24.9%C++14.0%Ruby2.6%Objective-C0.7%
MIT License
Created December 17, 2021
Updated November 3, 2025