Monday, October 3, 2016

Port forwarding in linux!

Remote Machine: ssh -Lserver-port:localhost:destination-port destination-user@destination-ip

eg:
ssh -L6190:localhost:389 admin@ldap1

Local Machine: ssh -Llocalhost-port:localhost:server-port server-user@server-ip

eg:
ssh -L6190:localhost:6190 admin@web

Cheers,

RK 

please consider the environment before printing 


No comments:

Post a Comment