Home / Operating System / Linux / Tạo ssh tunneling trên linux

Tạo ssh tunneling trên linux

Debian/Ubuntu:

# apt-get instal autossh

# /usr/bin/autossh -L 192.168.1.110:25:localhost:25 khanh@remoteserver.com -p 22 -N -f

 

Centos/RHEL:

# yum install autossh

# /usr/bin/autossh -M29001 -f -N -L192.168.1.110:25:localhost:25 khanh@remoteserver.com -p 22

 

Usage: autossh [-V] [-M monitor_port[:echo_port]] [-f] [SSH_OPTIONS]

Print Friendly, PDF & Email

About dongpolice

Check Also

How to build App Portable-dongpolice.com

How to Build App Portable with ThinApp of VM

How to Build App Portable with ThinApp of VM – Hướng dẫn làm App Portable …