Ssh tunneling

I want to perform ssh tunnelling for which I have been using PuTTy. Config is as follows:

Host IP:

172.XX.XX.111

Port:

22

Tunnel setting source port:

19005

Destination:

172.XX.XX.40:1521

After entering my user ID and password, I am able to see in my command prompt that

127.0.0.1:19005

is listening.

Now I want to use the ssh command for tunnelling.

This is what I have done so far:

Using PuTTy to connect to server:
Host IP:

172.XX.XX.111

Port:

22

After entering my user ID and password, I run the command:

ssh -L19005:172.XX.XX.40:1521 172.XX.XX.111

It then asks for my password. After I provide it, I check the command prompt, but now there is no configuration

127.0.0.1:19005

present in the "Listening" state.

Where am I going wrong?

Hey

What do you trying to achieve anyway?
You will get a tunnel to the server and it will listen for your traffic from the computer, but you need to use it somehow :slight_smile:

Here is the article about SSH tunneling and example how to use it, take a look.