Questions tagged [ssh-tunnel]
An SSH tunnel leverages the SSH protocol to transport unencrypted data through an encrypted connection.
854
questions
1
vote
1
answer
831
views
connecting to webmin gui remotely via ssh tunnel
I have an instance of webmin running inside our office. Within the building I can access via the browser using the ip and port 10000 (as is standard)
Outside the building, the router is not set up to ...
1
vote
1
answer
430
views
Slowness of an ssh tunnel to use phpmyadmin
I installed phpmyadmin locally (on Linux Mint 19), with which I manage mysql 5.7 databases on a remote VPS (running Ubuntu 18.04), via ssh tunnel.
I create the tunnel with this command:
ssh -L 3307:...
0
votes
1
answer
3k
views
SSH Reverse Tunnel: Bind Address is ignored
I'm trying to configure a server in one site to act as a proxy for several servers in another site using SSH. The server has one physical interface in its local network:
eth0 10.1.1.10
This server ...
1
vote
1
answer
888
views
Options to forward vm to internet via ssh tunnel
Want to give vm in qemu/kvm internet access but only via a port i can forward to ssh tunnel.
qemu -> host (already established) ssh tunnel on port 8083 -> ssh proxy -> www
ports for browsers ...
1
vote
0
answers
673
views
"Dumb" SSH Proxying
Most of our developers need SSH access to some of our internal Google Cloud infrastructure. The way that we're currently handling it is by using a bastion host and having users modify their SSH ...
1
vote
2
answers
4k
views
NGINX reverse proxy SSH map issue
We have several virtual (Ubuntu) servers running in our company. Each has its network connection bridged, so it gets its own IP address from the router (DHCP-reserved). We need to run several websites ...
0
votes
1
answer
403
views
SSH Local Forwarding [closed]
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....
1
vote
1
answer
640
views
Creating a forwarded ssh connection from a middle machine
I feel like I've tried every combination of the -L and -R flags with ssh and read a ton of very similar question, but can't make this work…maybe it's not possible.
There are two machines, neither of ...
1
vote
1
answer
88
views
For a Mac OS user, is there a way to configure the shell to refuse any input whatsoever, beyond an SSH connection?
I am reasonably familiar with the implementation of SSH tunnelling (forward and reverse) for the purpose of creating a secure conduit by which insecure protocols (eg: VNC) can be carried.
On Mac OS, I ...
0
votes
1
answer
114
views
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 ...
1
vote
0
answers
2k
views
Host SSH tunnel access from within rootless container run by Podman
Background
System is running a rootless container based upon the docker.io/rocker/shiny-verse:latest image that publishes a port (say 8000) for remote web connections (to access the shiny ui). The ...
0
votes
1
answer
1k
views
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 ...
0
votes
1
answer
329
views
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 ...
1
vote
0
answers
56
views
"tunX" interface device sequence is incrementing with every "ssh" connection
We use ssh -w connection to create tunnels from client workstations to the server. -w creates a tunnel interface for that particular ssh connection. On the server side I noticed every time ssh re-...
4
votes
2
answers
2k
views
SSH reverse port forward disconnects each 10 minutes
I have a SSH reverse port forward set up with the following command:
autossh -N -R 0.0.0.0:22722:127.0.0.1:22 -i /tmp/my_ssh_key -o StrictHostKeyChecking=no -p 22 -4 -C reverseportforward@myserver
...
0
votes
1
answer
1k
views
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 ...
1
vote
0
answers
276
views
SSH agent forwarding not working on LSF when using BSUB
At my institute we have a cluster that runs LSF. Via this cluster, I want to connect to other computers/servers using Agent Forwarding. This works fine when I am on the login node, however when I am ...
1
vote
1
answer
653
views
Ssh config file on intermediate host is ignored for ssh proxy with proxycommand
I'm connecting to host-b through host a
Host host-a
HostName 10.8.0.1
Port 333
User host_admin
IdentityFile ~/.ssh/id-ecdsa-admin
Host host-b
HostName 1.1.1.1
Port 567
...
0
votes
1
answer
299
views
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.
...
1
vote
2
answers
4k
views
Open Source Remote Access using VNC and Reverse SSH
I am trying to get a remote access approach (open source) working involving openssh and tightvnc that deals with NAT, that allows someone to remote to my server and then allows me to vnc back to their ...
0
votes
1
answer
2k
views
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 [email protected] -p X
From this server I can run:
psql -h localhost ...
0
votes
0
answers
164
views
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....
0
votes
1
answer
493
views
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 ...
8
votes
1
answer
18k
views
access an http server as localhost from an external pc over ssh
I have an application server at work that can accept http request only from localhost.
At home I access the server through ssh.
Once on the server I can curl http://localhost/test.html
I would like ...
2
votes
0
answers
897
views
Send Mails with Postfix through SSH Tunnel
I'm a bloody newbie to SMTP and Postfix but I have configured a Postfix SMTP Service with SASL authentication on Raspbian in a local network behind a firewall.
There is also a Dovecat IMAP Server ...
2
votes
1
answer
2k
views
SSH multiplexing hangs if not gracefully shutdown
I am attempting to set up remote access to my home computer via SSH with multiplexing. Here is the setup: from my laptop, I connect to a port on my modem; this port is forwarded to my router, which ...
2
votes
1
answer
3k
views
SSH running in background (-f) with sshpass
My final goal is to use both ssh -f and sshpass together, although it is quite not works.
ssh -f tries to fork from the ssh process and also sets stdin to read from /dev/null - what makes things ...
0
votes
1
answer
1k
views
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 ...
0
votes
1
answer
2k
views
Check if SSH tunnel is still running
I'm running an SSH tunnel command that looks like this:
ssh -v [email protected] -L 9999:10.238.93.43:8991
But when I test listening connections with the netstat command I ...
0
votes
2
answers
589
views
Use wget on a cluster with ssh-tunnel [closed]
Normally I can sercure copy files from one machine to another using
> scp [email protected] ssh [email protected]:/home/user/my_files/* .
which is very slow for large data sets.
I ...
0
votes
1
answer
3k
views
SSH reverse tunnel from config file
I'm looking for a ssh client config directive like LocalForward that works as the -L CLI parameter but for the -R parameter
TL;DR full problem details
The data:
repoServer -> myComputer -> ...
0
votes
1
answer
954
views
Bind VNC over SSH jump host tunnel to something other than localhost port
I know how to use a jumphost to create an VNC SSH tunnel ssh -A -N -L 5901:targethost:5901 jumphost however, that binds to the localhost of the initiating machine. So if I want to bind to many hosts ...
9
votes
2
answers
12k
views
ssh -R binds to 127.0.0.1 only on remote
I'm running ssh -N -f -R127.0.2.3:23000:127.1.2.3:23000 user@remote , and I expect the tunnel on remote has opened on 127.0.2.3:23000, but it only opens on 127.0.0.1:23000, and it's inconvenient ...
0
votes
1
answer
2k
views
SSH Tunnel Through Multiple Hosts to Forward Traffic to Device
I am attempting to minimize my Public facing attack surface. Allowing only traffic from a specific IP address. I want to prevent all input access to the remote WAN/Edge Router's management port from ...
0
votes
0
answers
2k
views
SSH Remote Port Forwarding not opening port
I am trying a remote port forwarding on a remote server (linux) with this (local is windows):
putty.exe -ssh root@remote_host -R 55555:www.google.es:80
And the port is not open on the other side. ...
1
vote
0
answers
497
views
Web server on remote, is it possible to ssh to remote and have local browser connect to server?
On a headless remote machine which I connect to via ssh and do not have sudo privileges, I have an interactive python script with a console interface.
I want to use a simple web framework like flask ...
2
votes
1
answer
2k
views
How do i connect to remote Potgresql server via Unix Doman Socket over SSH [closed]
I have a two machines, my workstation running on Arch Linux and my cloud server running on Ubuntu.
I have installed Postgresql on my server, and it is accessible via Unix Domain Socket on the server ...
1
vote
1
answer
2k
views
How to access free internet through a server [closed]
I have an internet connection which is limited to only connect to some local servers in my area. In this area, I own a server which access is wider than my internet connection and through this server, ...
1
vote
1
answer
3k
views
Tunneling between two servers [closed]
There are two servers in this network
The first server benefits from censored internet
The second server uses uncensored internet
The client can only connect to the first server and connect to the ...
0
votes
0
answers
42
views
How can I allow my proxy server's destination to be itself? [duplicate]
I'm trying to setup ssh over https using apache and proxytunnel on Ubuntu 18.04, but I want the proxy server to be the same as the ssh server.
I have apache going, and from netstat and the output of ...
1
vote
0
answers
495
views
How to use sshuttle to connect to an aws service via two hops?
I have following situation:
Host A: My Machine
Host B: AWS Bastion Host
Host C: EC2 instance in a AWS VPC with a private IP only
Host D: AWS Elasticsearch Service, accessible only from Host C via ...
1
vote
1
answer
6k
views
How to connect to remote mongoDB via ssh (via Sacred)? connection refused
I have two computers: Ubuntu1 and Ubuntu2.
Ubuntu1 runs MongoDB with database Sacred3.
I want to run connect from U2 to U1 via ssh and store there my experiment results.
What I tried and failed:
1. ...
1
vote
1
answer
1k
views
SSH agent forwarding is not working when SVN+SSH
I'm trying to automate the deployment of an SVN repository (with a web app) over multiple production servers, without installing any private key on the servers.
The SVN server is hosted on srv3, and ...
0
votes
1
answer
710
views
phpMyAdmin tunnel to mySQL
How can I connect local phpMyAdmin via SSH tunnel to a remote mySQL dockerized container (example.com)? This is the local phpMyadmin in docker compose:
pma:
image: phpmyadmin/phpmyadmin
...
1
vote
1
answer
463
views
SSH SOCKS5 Tunnel forwarding to reverse ssh host
I have the following machines
MachineA behind firewall somewhere at the world
MachineB server on the internet (middleman)
My Laptop behind firewall somewhere at the world
MachineA maintains a ...
0
votes
1
answer
784
views
Transparent ssh tunneling
I have an SSH tunnel defined in /etc/ssh/ssh_config. It contains:
LocalForward 0.0.0.0:8000 some-service:80
LocalForward 0.0.0.0:8001 some-other-service:80
I would still like to be able to access ...
2
votes
3
answers
6k
views
Using a multi-hop ssh tunnel to reach a database
We have some remoteservers which are only accessible through a jumphost. On this remoteservers run vms which host the databases i want to reach locally. Each box is a linux system. I have only su ...
0
votes
1
answer
312
views
Reverse SSH Connection
this question is not directly about reverse tunnels or port forwarding, but the answer might be in there..
The situation:
I have a couple of workstations that I want to control using SSH. However, ...
3
votes
0
answers
1k
views
AutoSSH not connecting to remote server, but SSH works fine
Trying to use autossh to create a tunnel on my remote server that I can use. I can create the tunnel with normal SSH but trying to use autossh keeps failing. I want to setup it up with autossh ...
0
votes
1
answer
2k
views
SSH Port Forwarding not working
I have two CentOS 7 servers (Hypervisor and Relay for this scenario) . I wish to connect to a VNC port on Hypervisor which is behind a firewall by using Relay with is a server with SSH open to ...