Skip to content
Launch predefined SSH commands via a GUI
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AUTHORS
LICENSE
QLaunchOverSSH.pro
README.md
about.cpp
about.h
about.ui
applet-gnome-sshmenu-icone-6595-16.png
cadenas-ouvert-icone-4601-16.png
config.xml
favicon.ico
kcommand.cpp
kcommand.h
kconfig.cpp
kconfig.h
kdata.cpp
kdata.h
klog.cpp
klog.h
kmessagebox.cpp
kmessagebox.h
kparameter.cpp
kparameter.h
ksql.cpp
ksql.h
kssh.cpp
kssh.h
logo.png
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
passphrase.cpp
passphrase.h
passphrase.ui
qlaunchoverssh.sql
qlaunchoverssh.sqlite
ressources.qrc
ressources.rc
version.h

README.md

QLaunchOverSSH

Requirement

This program require the libssh library and Qt (tested on Qt version 4.x). You must install it before use QLaunchOverSSH

Installation

qmake QLaunchOverSSH.pro
make
sudo make install

Configure the program

  • Edit the file config.xml and set the value you want for each item :
    • database : the path of the database (default value : ./qlaunchoverssh.sqlite)
    • know_hosts : the path of the know host file (default value : ./ssh/known_hosts) It will be create if it doesn't exist
    • log : the path of the log file (default value : ./qlaunchoverssh.log) It will be create if it doesn't exist
    • private_key : the path of the private key in OpenSSH format (default value : ./ssh/id_dsa)
    • passphrase : set 1 if your private key require a passphrase, 0 else (default value : 0)
  • Add your command in the database

Database structure

CREATE TABLE "command" ("id" INTEGER PRIMARY KEY  AUTOINCREMENT  NOT NULL , "name" VARCHAR(255) NOT NULL , "server" VARCHAR(255) NOT NULL , "login" VARCHAR(255), "use_key" INTEGER NOT NULL , "command" VARCHAR(255) NOT NULL , "passwd" VARCHAR(255));
CREATE TABLE "parameter" ("id" INTEGER PRIMARY KEY  AUTOINCREMENT  NOT NULL , "name" VARCHAR(255) NOT NULL , "position" INTEGER NOT NULL , "id_command" INTEGER NOT NULL , "explain" TEXT, "required" INTEGER);
CREATE VIEW "count_parameters" AS SELECT count(id) as nb_parameter, id_command FROM parameter GROUP BY id_command;
CREATE VIEW "get_parameters" AS SELECT parameter.* FROM parameter ORDER BY position ASC;
CREATE VIEW "max_position" AS SELECT id_command, MAX(position) + 1 AS max FROM parameter GROUP BY id_command;
CREATE INDEX "parameter_id_command" ON "parameter" ("id_command" ASC);
CREATE INDEX "parameter_position" ON "parameter" ("position" ASC);

License

Authors

You can’t perform that action at this time.