Here’s how to redirect an SSH connection

ssh -L 127.0.0.1:8888:192.168.1.1:80 root@yourIP