Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

create a tunnel via permanently

For RHEL/CENTOS"
yum install autossh

For ubuntu:
apt-get install autossh

After installation ::

autossh -M 0 -f -q -N -L LOCAL_PORT:REMOTE_HOST:REMOTE_PORT SSH_USER@SSH_HOST
 
PREVIOUS NEXT
Tagged: #create #tunnel #permanently
ADD COMMENT
Topic
Name
8+5 =