sshjump/README.md

23 lines
1.0 KiB
Markdown
Raw Normal View History

2018-06-05 15:05:19 -04:00
# sshjump
Bash scripts to ease setting up reverse ssh tunnel for ssh to hosts behind nat
2018-06-05 15:06:28 -04:00
You must install sqlite3 and autossh
Debian/Ubuntu
apt install sqlite3 autossh
CentOS
yum install sqlite3 autossh
2018-06-05 15:28:02 -04:00
2018-06-05 15:31:40 -04:00
After installing everything you go on the server and use createdatabase.sh then you go to the hosts and run host/setup.sh. After the setup.sh has been ran you can run the host/start.sh on the host in a tmux or in the background. Once that's running you should be able to use the main sshjump.new script to ssh to the other devices. As far as I know the autossh should reconnect on disconnect.
2018-06-05 15:28:02 -04:00
I will update with systemd scripts eventually
To use the main script once all devices are connected you can type "./sshjump.new list" this will list all hosts that have been registered
2018-06-07 15:00:15 -04:00
The report prints first the hostname then the ID
2018-06-05 15:28:02 -04:00
If you want to connect with ID you type "./sshjump.new id user $id" ex "./sshjump.new id nick 123321456"
If you want to connect with hostname you type "./sshjump.new host user hostname" ex "./sshjump.new host nick test.test.com"