Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 12-15-2011, 12:51 PM ssh tunnel over ssh
Novice Talker

Posts: 10
Trades: 0
I'm trying to establish an ssh tunnel over ssh to my mysql server which is only on my machine, the same machine everything running as localhost ... but I also need to return a mysqli db pointer just like if I was connecting directly to my database on my future hosting service machine. This is my first time looking into ssh in gereral, so I have nothing set-up yet. I want to do this for future practice using PHP5 locally before ordering any hosting services. I hope that make since. Would anyone have an working example of how this is done. Here is what I have on an single Windows-XP machine: httpd-2.2.19-win32-x86-openssl-0.9.8r || php-5.3.8 || mysql-5.5.19-win32.msi Thanks in advance

Last edited by max21b; 12-15-2011 at 12:53 PM..
max21b is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-15-2011, 04:35 PM Re: ssh tunnel over ssh
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You can't SSH from localhost to localhost. SSH Ports are either listening (server) or sending (client). They can't do both at once.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-21-2011, 05:20 AM Re: ssh tunnel over ssh
Justinwiz's Avatar
Skilled Talker

Posts: 58
Name: Justin
Location: /etc/httpd/logs/error_log
Trades: 0
I've needed to do this before, only then, I used a SSH tunnel to a Linux box and used Xinetd to route my connection to localhost, all connections going to the MySQL server will show up connection from localhost then. But I'm not sure if there is an equivalent of Xinetd on Windows....
__________________
█ Reliable VPS and Minecraft server hosting at extremely affordable prices.

Please login or register to view this content. Registration is FREE
Justinwiz is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ssh tunnel over ssh
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29991 seconds with 12 queries