Open GoogleCodeExporter opened 8 years ago
Hi,
You could write your own ssh login wrapper script. In wrapper script you
can ask user for remote server IP address, or you can read it from some
file etc...
And than you could run shellinaboxd with something like that:
shellinaboxd --service /:$USER:$GROUP:$HOME:/path/to/mysshlogin.sh
Example script "mysshlogin.sh":
------------------
#!/bin/bash
# Read user input
read -p "Please enter remote server address: " remoteserver
echo "Connecting to server ${remoteserver} ..."
# Start ssh connection
ssh root@${remoteserver}
------------------
PS: this script is probably not safe :) you should do some input checking or
something ...
Original comment by luka.kra...@gmail.com
on 20 Jan 2015 at 11:30
Original issue reported on code.google.com by
santoshv...@gmail.com
on 13 Jan 2015 at 12:36