1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
|
\input texinfo
@c -*-texinfo-*-
@c %**start of header
@setfilename guile-ssh.info
@documentencoding UTF-8
@settitle Guile-SSH Reference Manual
@c %**end of header
@include version.texi
@copying
This manual documents Guile-SSH version @value{VERSION}.
Copyright (C) 2014-2022 Artyom V. Poptsov
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
copy of the license is included in the section entitled ``GNU Free
Documentation License.''
@end copying
@dircategory The Algorithmic Language Scheme
@direntry
* Guile-SSH: (guile-ssh). Guile bindings to libssh.
@end direntry
@setchapternewpage odd
@titlepage
@sp 10
@title Guile-SSH Reference Manual
@subtitle For Guile-SSH @value{VERSION}
@author Artyom V. Poptsov
@page
@vskip 0pt plus 1filll
@vskip 0pt plus 1filll
@insertcopying
@end titlepage
@finalout
@headings double
@ifnottex
@node Top, Introduction, (dir), (dir)
@top The Guile-SSH Reference Manual
@insertcopying
@sp 1
@end ifnottex
@menu
* Introduction::
* Installation::
* API Reference::
* Examples::
* Acknowledgments::
Appendices
* GNU Free Documentation License:: The license of this manual.
Indices
* Type Index::
* Procedure Index::
* Concept Index::
@end menu
@contents
@node Introduction
@chapter Introduction
Guile-SSH is a library that provides access to the @acronym{SSH}
protocol for programs written in
@url{https://www.gnu.org/software/guile/, GNU Guile}. It is a wrapper
to the underlying @url{http://www.libssh.org/, libssh} library. This
manual is partly based on libssh documentation.
@section The goals of this (humble) project
@quotation
Most projects are humble, it's the combination that's interesting :-)
@author Ludovic Courtès
@end quotation
Now let me explain what are the goals of the whole project. Aside from the
fact that I am having lots of fun with the project itself (and the project is
helping me to grow as a free software developer, many thanks to all advices
and comments from the community!), there are practical goals that the project
struggling to achieve.
For me, the main goal is to provide convenient means to write truly
distributed applications in my favourite programming language.
Computers are getting cheaper and more and more ubiquitous, and so different
kind of networks. In my opinion the question is -- how we are going to
utilize those new computational resources? Using multi-core systems
effectively may be tricky; fortunately some languages (such as Scheme/GNU
Guile) already provide convenient API to utilize those systems. But what
about systems that distributed over a network?
I am dreaming of the times when using computer resources distributed over a
network in GNU Guile will be as easy as using local ones. You should not be
asking question ``how to do it?'' -- what you should be asking yourself is
``how can I use it?''
But Guile-SSH itself is just a library; a tool that can be used to solve some
problems (and, perhaps, to cause new ones ;-)). So, as was noted in the
quotation above, it's the combination of projects that may lead to the most
interesting results. With that said, I would love to see Guile-SSH used in
another projects, and to hear positive (and negative) feedback from you.
Happy hacking!
- avp
@node Installation
@chapter Installation
@section GNU Guix
The latest stable Guile-SSH is available from @url{https://guix.gnu.org/, GNU
Guix} repository:
@example
$ guix install guile-ssh
@end example
If you want to get the environment for Guile-SSH development there's
@file{guix.scm} file in the root of the repository that can be used with
@command{guix shell}:
@example
$ guix shell -D -f ./guix.scm
@end example
@section Ubuntu GNU/Linux
@example
$ sudo apt install guile-ssh
@end example
@section Other Platforms
Guile-SSH is also available from the default repositories at least on the
following platforms:
@itemize
@item @url{https://aur.archlinux.org/packages/guile-ssh/, Arch GNU/Linux}
@item @url{https://www.parabola.nu/packages/?q=guile-ssh, Parabola GNU/Linux}
@item @url{https://software.opensuse.org/package/guile-ssh, openSUSE GNU/Linux}
@item @url{https://github.com/aconchillo/homebrew-guile, macOS}
@end itemize
Please refer to the official document for each platform for the instructions
on how to install the package.
@section Manual Installation
Guile-SSH sources are available from GitHub at
@url{https://github.com/artyom-poptsov/guile-ssh/}. This section describes
requirements of Guile-SSH and the manual installation process.
Guile-SSH depends on the following packages:
@itemize
@item @url{https://www.gnu.org/software/guile/, GNU Guile}, version 2.0.9 or later
@item @url{http://www.libssh.org/, libssh}, version 0.6.4 or later
@end itemize
Get the sources of Guile-SSH from GitHub:
@example
$ git clone git@@github.com:artyom-poptsov/guile-ssh.git
@end example
Configure the sources:
@example
$ cd guile-ssh/
$ autoreconf -if
$ ./configure
@end example
Build and install the library:
@example
$ make
$ make install
@end example
For a basic explanation of the installation of the package, see the
@file{INSTALL} file.
Please @strong{note} that you will need
@url{https://www.gnu.org/software/automake/, Automake} version 1.12 or
later to run self-tests with @command{make check} (but the library
itself can be built with older Automake version such as 1.11).
@strong{important} You probably want to call @command{configure} with
the @option{--with-guilesitedir} option so that this package is
installed in Guile's default path. But, if you don't know where your
Guile site directory is, run @command{configure} without the option,
and it will give you a suggestion.
@node API Reference
@chapter API Reference
@menu
* Sessions:: Session management
* Auth:: Authentication procedures
* Agent:: Interaction with SSH agent instances.
* Keys:: Public and private keys
* Channels:: Channel manipulation procedures
* Tunnels:: SSH tunnels
* Remote Pipes:: Creating of input, output or bidirectional pipes to remote
processes
* Shell:: A high-level interface to remote shell built upon remote
pipes
* Logging:: Interface to the libssh logging
* Version:: Get information about versions
Guile-SSH Server API
* Servers:: Creating and managing Guile-SSH servers
* Messages:: Handling of messages
SFTP
* SFTP:: Guile-SSH SFTP client API.
Distributed Computing
* Distributed Forms::
@end menu
@include api-sessions.texi
@include api-auth.texi
@include api-agent.texi
@include api-keys.texi
@include api-channels.texi
@include api-tunnels.texi
@include api-popen.texi
@include api-shell.texi
@include api-logging.texi
@include api-version.texi
@include api-servers.texi
@include api-messages.texi
@include api-sftp.texi
@include api-dist.texi
@include examples.texi
@node Acknowledgments
@chapter Acknowledgments
The @url{http://www.libssh.org/, libssh} that is used by Guile-SSH is
initially written by Aris Adamantiadis and being developed by the developer
community. See @file{AUTHORS} file that comes along with libssh distribution
for full authors list.
Also I'd like to thank all the people who contributed their precious time and
skills to send bug reports and patches for Guile-SSH. Please see @file{THANKS}
file in the Guile-SSH repository for the full list of contributors.
Thank you.
- Artyom ``avp'' Poptsov
@node GNU Free Documentation License
@appendix GNU Free Documentation License
@include fdl.texi
@include indices.texi
@bye
|