stumpwm.stumpwm-contrib/util/swm-ssh/README.org
Kirill A. Korinsky d7c6081144
Use known_hosts as source at swm-ssh
Unfortently, config may contains wildcard based domains which makes it
usless for this module, but from another hand the known_hosts is good
source for known connections.

Thus, tramp uses the same idea.
2024-02-05 23:32:43 +01:00

959 B

Requirements

  • cl-ppcre

    Install cl-ppcre from the REPL:

    (ql:quickload :cl-ppcre)

Usage

This simple plugin parses your ssh config file and opens a connection using a teminal emulator.

Put the following in your ~/.stumpwmrc

(load-module "swm-ssh")

And use it either by calling the appropriate function directly (swm-ssh-menu) or by defining a keybind (example <prefix> C-a) in your ~/.stumpwmrc

(define-key *root-map* (kbd "C-a") "swm-ssh-menu")

Variables

swm-ssh-default-term

Default terminal to open an ssh connection is urxvtc. To change it, use

(setq swm-ssh:*swm-ssh-default-term* "xterm")

swm-ssh-known-host-path

Path to thee list of know host bz SSH client. Defaults to ~/.ssh/known_hosts. Change it with

(setq swm-ssh:*swm-ssh-known-hosts-path* "/path/to/ssh/known_hosts")