Async SSH, SCP and SFTP client for Nim, using libssh2 wrapper [WIP] Forked from https://github.com/ba0f3/ssh2.nim
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Huy Doan 60fa0f4c8a
Merge pull request #8 from pswilde/master
1 month ago
.github Create FUNDING.yml 8 months ago
src scp.nim needs libssh2.Channel type in some situations 1 month ago
tests Add publickey authentication from libssh2 1 year ago
.gitignore Initial commit 2 years ago
LICENSE Initial commit 2 years ago
README.md Create README.md 2 years ago
ssh2.nimble scp.nim needs libssh2.Channel type in some situations 1 month ago

README.md

ssh2.nim

High level async SSH, SCP and SFTP client for Nim, using libssh2 wrapper

Usage

import asyncdispatch, ssh2, ssh2/scp

proc main() {.async.} =
  var client = newSSHClient()
  defer: client.disconnect()
  await client.connect("127.0.0.1", "nim", Port(2222), password="secret")
  echo await client.execCommand("uptime")

waitFor main()