擅长:python、mysql、java
<ol>
<li>通过ssh和端口转发连接到服务器<strong>198.54.x.240:21098</strong>
像<code>ssh -t -gL 33069:localhost:3306 198.54.x.240</code>
在窗户上用油灰,我喜欢基蒂(叉子油灰)
添加连接和SSH隧道查看图片
<a href="https://i.stack.imgur.com/V3U9L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V3U9L.png" alt="create_connection"/></a><a href="https://i.stack.imgur.com/pyvWq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pyvWq.png" alt="add ssh tunnel"/></a><a href="https://i.stack.imgur.com/jF3XL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jF3XL.png" alt="add port to forward"/></a></li>
<li>通过localhost:33069(<a href="https://stackoverflow.com/questions/21903411/enable-python-to-connect-to-mysql-via-ssh-tunnelling">answer you know</a>)WorkBench连接到MySQL也可以这样做,但是3306在3306上,如果您需要一个以上的远程连接最佳实践转发不同的porst</李>
</ol>