ssh-tunnel

Explain SSH tunneling process and limitations (for a remote Xdebug session)

 ̄綄美尐妖づ 提交于 2019-12-13 01:57:14
问题 The Preamble I start up my local SSH terminal at work behind a firewall, and connect to a remote server all the time without any problem. The way Xdebug works, correct me if I'm wrong, is that it sends an "unsolicited" request to my network's port 9000. I actually initiated that action by sending the remote server an HTTP request through my browser with a POST/GET/COOKIE variable instructing xdebug to start up. But my network doesn't know that. All it knows is that it is getting a request on

ssh tunneling for sftp or GUI

假装没事ソ 提交于 2019-12-12 08:17:43
问题 I am trying to use sftp over an ssh tunnel I have a homePC , that can use a gatewayPC as a jump host to login to a remoteserver i use the ssh tunnel command $ssh -t userid@gateway ssh remoteserver from homePC and it worked great However, I would like to open a nautilus or any other file manager once I am logged into the other machine one option is to be able to sftp or ftp over this tunnel Are there GUI based tools like putty for windows in order to make this happen? Any help is appreciated

ssh tunnel in foreground works for mysql host localhost but ssh-tunnel in background works for mysql host 127.0.0.1

微笑、不失礼 提交于 2019-12-11 15:43:04
问题 What I am trying to do here is forward all connections to localhost on machine-one on port 3306 to machine-two on localhost on port 3306. So if you are connecting to mysql on machine-one it acts like you are connecting on machine two. I thought an ssh tunnel was supposed to forward the traffic on a specific port not act like it is logging me into the other machine. (like it is doing here) I have tried without the "admin" before "@machine-two-hostname.com" and that does the same thing. As the

Connect to database through two ssh tunnels in IntelliJ IDEA

百般思念 提交于 2019-12-11 10:25:00
问题 I'm trying to add a postgresql database as a datasource in IntelliJ IDEA Ultimate. I've worked with a datasource through ONE ssh tunnel already. But now the database server is behind a firewall which only accepts ssh connections from a management server. The only way to access the db server goes over the management server. So I (or IntelliJ) have to connect via ssh to this server and then, by using another user, tunnel via ssh to the database server. Everything clear? :-D The problem is, that

I would like to simplify SSH Tunneling to do a MySQL Dump and SCP the file to local machine

只谈情不闲聊 提交于 2019-12-11 08:59:04
问题 Server setup (fake IPs) utility - 1.1.1.1 - SSH access on public IP database2 - 1.1.1.2 - SSH access on private IP from utility On a semi-regular basis I need to do a mysqldump on database2 and pull that down to my local machine so I can debug our app with real data. My current process is as follows: ssh into utility ssh into database2 execute mysqldump command exit from database2 scp dump file down to utility exit utility scp dump file down to local machine Needless to say this is not

GCP: You do not have sufficient permissions to SSH into this instance

心已入冬 提交于 2019-12-11 04:25:52
问题 I have a (non-admin) account on one GCP project. When I start the Dataproc cluster, GCP spins up 3 VMs. When I try to access one of the VM via SSH (in browser) I get the following error: I tried to add recommended permissions, but I cannot add the iam.serviceAccounts.actAs permission. Any idea how to solve this? I read through the GCP documentation, but I just cannot find the solution for this. I have the following roles associated with my account: 回答1: In the end, we managed to solve it by

SSH tunneling to remote access MySQL database

*爱你&永不变心* 提交于 2019-12-10 19:44:08
问题 I am trying to write Java program to access a remote mySQL database using ssh tunneling. Below is my code: int lport = 5656; int rport = 3306; String rhost = "111.222.333.444"; String host = "111.222.333.444"; String user = "username"; String password = "password1234"; String dbUser = "mySQLuser"; String dbPass = "mySQLpassword1234"; String schema = "test_db"; Connection conn = null; try { Properties config = new Properties(); config.put("StrictHostKeyChecking", "no"); JSch jsch = new JSch();

cURL request using socks5 proxy fails when using PHP, but it works through the command line

一曲冷凌霜 提交于 2019-12-10 03:49:19
问题 cURL + proxy noob here, having a hard time. I'm having trouble trying to retrieve a web page from a remote secure server via a proxy. Everything has apparently been set up correctly by a remote dev, such that the following command line instruction works and returns what we're looking for: curl -k --socks5-hostname localhost:xxxx https://hostname/ However, the following PHP does not echo the requested webpage. Instead it echoes the error 'Couldn't resolve host name': $proxy = 'localhost:xxxx';

Capistrano, Firewalls and Tunnel

非 Y 不嫁゛ 提交于 2019-12-09 13:29:55
问题 We're using Capistrano to automate pushing new versions of a PHP application to a production server. The production server (we'll call it production) is public, while our repository server (we'll call it repo) sits behind our corporate firewall, along with our own machines. Capistrano, as configured by default, won't work, as production can't talk to repo. I was wondering if there was someway I could setup capistrano to SSH to repo first, then SSH to production opening a tunnel on a port that

How tunneling services like 'Localtunnel' works without SSH?

那年仲夏 提交于 2019-12-09 12:51:37
问题 I want to understand how my local IP address (localhost) can be exposed to Internet. For that I've read [here] a method of port forwarding using SSH. Which basically does routing from publicly available server to our localhost using SSH. But I wonder how the service like 'LocalTunnel' works? In above article it's written as following: There services (localtunnel for example) creates a tunnel from their server back to port 3000 on your dev box. It functions pretty much exactly like an SSH