ssh2.cr
ssh2.cr copied to clipboard
libssh2 binding for Crystal language
I try to copy from my server to local thru `ssh2.cr` and I observe a poor performance like this: ```bash javier@XXXXXX:~/projects/crystal/backuper$ time ./backuper ~/.ssh/id_rsa awscli-bundle.zip 11648371 bytes writed. real 0m27,632s...
Remove commas on Enums to complains Crystal #7618 PR (https://github.com/crystal-lang/crystal/pull/7618)
Currently the spec tries to authenticate with a pubkey on port 2222 which naturally will fail on most systems. The only way I can think of to circumvent this and...
Hi @datanoise, I have a **error** on https://github.com/datanoise/ssh2.cr/blob/778a060e4a683ef587a2896840278030e59cc013/src/session.cr#L307 The error message is ~~~crystal in lib/ssh2/src/session.cr:307: undefined method 'st_mtimespec' for LibC::Stat stat.st_mtimespec.tv_sec, stat.st_atimespec.tv_sec) do |ch| ~~~ This **error** appear when using...
Hi @datanoise, Using * Crystal `0.26.1` * LLVM `4` * OpenSSH `7.8p1` * OpenSSL `1.1.0i` I have this message ~~~crystal Unhandled exception: ERR -16: Unable to extract public key from...
Since `lissh2_sftp_seek64` returns void/nil, it can't be compared in `check_error`, and it should catch the error when you try to read from or write to the handle anyway.
Hi Is there a way using something like the shell example - to execute several commands during one login session - if its possible could you provide an example (that...