Create a init script like this
# cat /etc/init.d/autossh
#!/bin/sh
autossh -M8122 -R8022:localhost:22 -l username -fN remote.example.net
And link it your rc script
That is all
Filed under: Uncategorized | Tagged: ssh | Leave a Comment »
Create a init script like this
# cat /etc/init.d/autossh
#!/bin/sh
autossh -M8122 -R8022:localhost:22 -l username -fN remote.example.net
And link it your rc script
That is all
Filed under: Uncategorized | Tagged: ssh | Leave a Comment »