Skip to content

Instantly share code, notes, and snippets.

View sarensw's full-sized avatar
💭
Grinding. Always.

Stephan Arenswald sarensw

💭
Grinding. Always.
View GitHub Profile
@sarensw
sarensw / SwiftNioSshWrapper.swift
Last active April 15, 2023 09:28
A wrapper for the NIOSSHClient example found in the apple/swift-nio-ssh repo. It can be used to call commands on the connected ssh server.
import Foundation
import Dispatch
import NIO
import NIOSSH
public class SwiftNioSshWrapper {
let host: String
let port: Int
let user: String
let password: String