Skip to content

hanh-nn/ssh_tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

PREPARE

NODE

sudo apt-get install openssh-client
sudo apt-get install openssh-server

SERVER

sudo apt-get install openssh-client
sudo apt-get install openssh-server

In server. create account which no permited (it's only tunnel)

sudo useradd -s /bin/false -M user3
sudo passwd user3

CONNECT

To create connect from node to server use

ssh -f -N -R 43022:localhost:22 user3@115.79.139.66 -p 2023

From server. If want to ssh node:

ssh hanh@localhost -p 43022

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published