On remote windows server:
sshd start
# must create all ssh_host_keys first
# ssh-keygen -a
# the sshd_config is probably inside /etc/ssh/sshd_config
on the local client:
ssh -L [localport]:[redirect-ip]:[redirect-port] -N
you can also chain them like this:
ssh -L 10000:test.com:10000 -N \
-L 20000:test.com:20000 -N \
-L 30000:test.com:30000 -N
http://localhost:10000 will now reach test.com:10000 THROUGH your ssh tunnel (remote windows server)
No comments:
Post a Comment