From 708a41e66f7de0662a636f13e9ec8a3f41f15fcc Mon Sep 17 00:00:00 2001 From: Koushik M L N Date: Fri, 22 Jun 2018 15:42:36 +0530 Subject: [PATCH] Modified ReadMe.md --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index de9da2e..90314ca 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,12 @@ wetty -p 3000 If you run it as root it will launch `/bin/login` (where you can specify the user name), else it will launch `ssh` and connect by default to `localhost`. +* `apt-get install sshpass` (debian eg. Ubuntu) for auto-login feature + +* `yum install sshpass` (red hat flavours eg. CentOs) for auto login + +Run on HTTP: +----------- If instead you wish to connect to a remote host you can specify the `--sshhost` option, the SSH port using the `--sshport` option and the SSH user using the @@ -35,8 +41,26 @@ or `http://yourserver:3000/ssh/` +You can pass an optional password as query parameter to use auto-login feature. + +`http://yourserver:3000/wetty/ssh/?sshpass=` + +or + +`http://yourserver:3000/ssh/?sshpass=` + + ## Run on HTTPS +You can also pass the SSH user name and password as query parameters and auto-login the user like this (Only while running as a non root account): + + `http://yourserver:3000/wetty/autologin?sshuser=&sshpass=` + +This is just an additional feature and the security implications for passing the password in the url will have to be taken care separately. + +Run on HTTPS: +------------ + Always use HTTPS. If you don't have SSL certificates from a CA you can create a self signed certificate using this command: