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.
Scheme Secure Shell (SSSH) uses Guile-SSH API to implement basic SSH client functionality.
Please see
$ ./sssh.scm --help
for information about program usage.
$ ./sssh.scm --identity=~/.ssh/id_rsa --user=avp localhost "uname -a"
Scheme Secure Shell Daemon (SSSHD) uses Guile-SSH API to implement basic SSH server functionality.
Echo client and server.
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 over an SSH tunnel.
$ sscp avp@127.0.0.1:/etc/profile profile
An example of using Guile-SSH tunnels and Guile-PG to access a remote PostgreSQL database.
Please see
$ ./pg-tunnel.scm --help
for information about program usage.
$ ./pg-tunnel.scm --host=example.org --dbname=example --user=alice \ 'select * from people'
Connect to a remote host, execute top
command on it and print the output
in uppercase letters, with terminal control characters intact.
The program shows usage of remote pipes (from (ssh popen)
module.)
./uptop.scm <hostname>
The program can be stopped by hitting Ctrl-C.