summaryrefslogtreecommitdiff
path: root/examples/README
blob: 4481bce42a6a54415c53329d58bf2f94e3589191 (about) (plain)
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
# -*- mode: org; -*-

* Examples
  This directory includes an examples of programs that use Guile-SSH
  library to access SSH protocol.

  Executable =.scm= files are produced from =.scm.in= files during the build
  process.
** =sssh.scm=
Scheme Secure Shell (SSSH) uses Guile-SSH API to implement basic SSH client
functionality.
*** Usage
Please see
#+BEGIN_EXAMPLE
  $ ./sssh.scm --help
#+END_EXAMPLE
for information about program usage.
*** Examples
#+BEGIN_EXAMPLE
  $ ./sssh.scm --identity=~/.ssh/id_rsa --user=avp localhost "uname -a"
#+END_EXAMPLE

** =ssshd.scm=
   Scheme Secure Shell Daemon (SSSHD) uses Guile-SSH API to implement basic
   SSH server functionality.
** =echo=
   Echo client and server.
** =rrepl.scm=
   A demo program that allows to connect to a remote REPL (RREPL) server.  Pass
   =--help= (or =-h=) flag to the program to get usage information.
** =rpc=
   RPC over an SSH tunnel.
** =sscp.scm=
*** Usage
#+BEGIN_EXAMPLE
$ sscp avp@127.0.0.1:/etc/profile profile
#+END_EXAMPLE
** =pg-tunnel.scm=
   An example of using Guile-SSH tunnels and [[http://www.nongnu.org/guile-pg/][Guile-PG]] to access a remote
   PostgreSQL database.
*** Usage
   Please see
#+BEGIN_EXAMPLE
  $ ./pg-tunnel.scm --help
#+END_EXAMPLE
   for information about program usage.
*** Examples
#+BEGIN_EXAMPLE
$ ./pg-tunnel.scm --host=example.org --dbname=example --user=alice \
    'select * from people'
#+END_EXAMPLE