7
5
We have a serverA to connect to. Then we use serverA to connect to databaseB. Setup like this in Putty (windows):
Session1:
1. connect to admin@serverA
2. setup tunnel local port 10022 to databaseB:22
3. run 'vi'
Session2:
1. connect to admin@localhost:10022
2. setup tunnel local port 1521 to database 1521
3. run 'vi'
(vi is used to hold session)
Then program use localhost:1521 for database connection.
I wonder if I can do it in a single command or a batch file in cygwin? Note that I cannot open port on serverA