Montag, 10. November 2008

Anyterm unter Etch

Anyterm ist eine 'Web zu SSH' Lösung. Wer hinter einen Firewall sitzt die nur HTTP/S Traffic durchlässt und trotzdem auf seine Server-Konsole zugreifen möchte empfehle ich Anyterm.
Am besten braucht Ihr die Development Branch von Anyterm. Damit ihr Anyterm unter Etch kompilieren könnt müsst ihr das Makefile anpassen. Hier das diff :

--- Makefile.orig       2008-11-06 17:05:16.000000000 +0200
+++ Makefile    2008-11-06 17:05:56.000000000 +0200
@@ -41,8 +41,8 @@ 
 CC_COMPILE_FLAGS=$(COMPILE_FLAGS) 
 
 LINK_FLAGS=${GCC_FLAGS} ${DEBUG_FLAGS} \
-       -lboost_thread-mt \
-       -lboost_program_options-mt \
+       -lboost_thread \
+       -lboost_program_options \        
-lutil  

 ifeq (${UNAME_S},OpenBSD)

Es empfiehlt sich Anyterm mit dem Apache2 Module Proxy anzusprechen (in Verbindung mit HTTP_AUTH).  Meine Apache2 Konfiguration

AuthType Basic
AuthName "Mein Host"
AuthUserFile /etc/apache2/html_auth/htpasswd
require valid-user
AllowOverride AuthConfig
Order allow,deny
allow from all
ProxyPass http://localhost:8123 ttl=60
ProxyPassReverse http://localhost:8123
Anyterm starten :
anytermd -p 8123 --local-only -c 'ssh %u@localhost' --user nobody --auth=null

Thats it! Bitte lest zuerst das Kapitel Security von Anyterm!