Skip to content

going-merry0/ssh-tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSH-Tunnel

Scripts for simplifying management of SSH Dynamic Tunnel.

You my heard MyEnTunnel in Windows or SSH Proxy in OSX, this script does what them do just via an easy-to-use command line.

Install

For Ubuntu and OSX, just run:

wget -qO- https://raw.githubusercontent.com/hsiaosiyuan0/ssh-tunnel/master/install.sh | bash

For other *nix platform, you need to install expect manually via the platform specific pkg manager.

Usage

Setup

Option Meaning
--host remote ssh host
--port remote ssh port
--user remote ssh username
--pass remote ssh password
--key file path of the private key of remote ssh
--listen local port
--action start | stop | restart
# choose to use password to do login
$ ssh-tunnel --host=46.76.166.185 --port=22 --user=root --pass=password --listen=7070

# or choose to use key to do login
$ ssh-tunnel --host=46.76.166.185 --port=22 --user=root --pass="" --key="file_path_of_your_private_key" --listen=7070

A config file will be generated at ~/.ssh-tunnel.cfg after above command succeeds.

Start

$ ssh-tunnel --action=start

Stop

$ ssh-tunnel --action=stop

Restart

$ ssh-tunnel --action=restart

About

Scripts for simplifying the management of SSH Dynamic Tunnel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages