libssh

LibSSH implementation in Crystal lang

libssh

LibSSH implementation in Crystal Lang

Installation

RedHat

sudo yum install libssh-devel

Debian / Ubuntu

sudo apt install libssh-dev

MAC OS

brew install libssh
  1. Add the dependency to your shard.yml:

    dependencies:
      libssh:
        github: xtokio/libssh
    
  2. Run shards install

Usage

require "libssh"

session  = LibSSH.connect("example.com","user","password")
response = LibSSH.execute_command(session,"ls -aslh")
LibSSH.close_session(session)

puts response

Contributing

  1. Fork it (https://github.com/xtokio/libssh/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

libssh

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • 4 months ago
  • July 11, 2024
License

MIT License

Links
Synced at

Fri, 22 Nov 2024 14:43:52 GMT

Languages