Questions tagged [ssh-tunnel]

An SSH tunnel leverages the SSH protocol to transport unencrypted data through an encrypted connection.

An SSH (secure shell) tunnel provides a secure connection through which unencrypted data can be sent.

This technique can be useful for:
- Providing security for insecure network protocols.
- Hiding one's true location (ip).
- Circumventing blocked ports in firewalls.

857 questions
0
votes
1 answer

SSH Local Forwarding

I have an ubuntu server that is currently connected to my iMac via Ethernet bridge with ip address 192.168.2.2. iMac is sharing the internet with ubuntu server with this. The iMac's IP address is 192.168.0.105 in the LAN network to the main…
AFwcxx
  • 125
  • 5
0
votes
1 answer

Hot to get external host names for each internal private addresses?

My lab has a private network like this (public address: 133.3.133.133, host name: my.lab.host.name) lab-gateway (private address: 192.168.0.1) |__labgpu01 (private address: 192.168.0.3) |__labgpu02 (private address: 192.168.0.4) How can I…
0
votes
1 answer

SSH tunnel on background disconnects immediately in a Docker container

I'm trying to connect my app running in a docker container to a database through a SSH Tunnel. My dockerfile is something like this: # Alpine, PHP7.4, Nginx FROM richarvey/nginx-php-fpm:1.9.1 EXPOSE 8080 ENV WEBROOT /var/www/html/public/ RUN…
Theraloss
  • 103
  • 5
0
votes
1 answer

If an SSL certificate's name must match the name entered into the browser, what do you do with SSH Local Port Forwarding?

If the SSL certificate must match the name entered into the browser; what if the name entered into the browser is https://localhost:8080, in the case of accessing a server that is behind an SSH gateway; and is accessed via Local Port…
leeand00
  • 4,869
  • 15
  • 69
  • 110
0
votes
1 answer

Not able to do port forwarding with multiple hosts

I have one hop between my local machine and the machine I want to access some remote port. I am trying following thing. But doesn't seem to work. From remote machine, I want port 9443 to open on my local machine. The port 9443 is already being…
Gaurang Shah
  • 101
  • 1
0
votes
1 answer

WebBrowsers don't obey ProxyFire rules

I am using ProxyFire portable v.3.42 on Windows to route all my system network traffic over LocalHost. In MobaXTerm(same as Putty) I have set a SSH Tunnel by forwarding 127.0.0.1:4567 into my server. Through this configuration , I expect every…
Parsa
  • 103
  • 4
0
votes
1 answer

specifying server port (not postgres port) for pg_dump / psql

I have a server named as servername.mydomain.com. I can do ssh to this server using a port number X using: ssh myusername@servername.mydomain.com -p X From this server I can run: psql -h localhost -d myDatabase -U myusername -p DBPORT Instead of…
Jose Cabrera Zuniga
  • 179
  • 1
  • 3
  • 11
0
votes
0 answers

SSH tunnel on remote Windows loads infinitely

I have the following setup: I need to maintain a web application on a remote Linux server. When I work from my company, I connect there via PuTTY with an SSH tunnel for the port localhost:8080 as 8002. So far, this has always worked. Now I'm in the…
Matthias Ronge
  • 467
  • 1
  • 7
  • 18
0
votes
1 answer

How to add ipv4 capability to ipv6-only-vserver?

I have an ipv6-only-vserver and a dual stack (ipv4-ipv6) server. How do I "add" ipv4 capability to the ipv6-only-server? So it's possible to "use" it like a ipv4 server: ssh/scp into the vserver via ipv4 using webdav/sftp/http/xmpp/... via ipv4 use…
user3200534
  • 392
  • 1
  • 3
  • 10
0
votes
1 answer

Permission Denied on NFS mount through SSH remote tunnel

I successfully exported a directory from a CentOS 7 server to a CentOS 6 server(I used * in /etc/exports (as opposed to the server's IP). But I can't seem to find solutions that work for me to export it through SSH Tunnels. This is my current…
Levi Uzodike
  • 125
  • 6
0
votes
1 answer

Check if SSH tunnel is still running

I'm running an SSH tunnel command that looks like this: ssh -v centos@bastion001.int01.abb.us.company.com -L 9999:10.238.93.43:8991 But when I test listening connections with the netstat command I don't see the tunnel port: bastion001 ABB-LAB] 0…
user99201
  • 287
  • 2
  • 8
  • 22
0
votes
2 answers

Use wget on a cluster with ssh-tunnel

Normally I can sercure copy files from one machine to another using > scp -oProxyJump=user@login.node.org ssh user@main.node.org:/home/user/my_files/* . which is very slow for large data sets. I was told that the machines I am using has a very fast…
-1
votes
1 answer

HTTP over SSH tunnel: How to organise video files downloading and playing?

I have two servers, let's call them website.com and file_storage.com. (They may be located on two physically different machines, or just be a different Docker containers on one server.) file_storage.com server stores some video files; website.com…
-1
votes
1 answer

How to test ssh tunelling?

Let's say I create a reverse ssh tunnel, with the following command. ssh -R 8080:localhost:11111 user@remote I can test that the tunnel is open on the remote with nc command nc -v 127.0.0.1 8080 localhost.localdomain [127.0.0.1] 8080 (http-alt)…
-1
votes
1 answer

When someone gains remote access to a server are there other ways to execute system commands other than the bash shell?

I am hardening a server and attempting to build a restrictive layer to a potential hacker even with root access to the server to do harm. If a user gains root or user access to the shell via say ssh, is there any other way for a user to access…
I'm Root James
  • 212
  • 3
  • 13