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

What's wrong with this SSH port forwarding?

I am trying to setup port forwarding to access port 10050 via SSH on a remote server. I want to connecto to port 10050 on localhost and that should forward my request via SSH to port 10050 on the server. So I tried the following: $ ssh…
Matthias
  • 302
  • 4
  • 16
0
votes
1 answer

Avoid use of SSH agent

I use ProxyCommand with the intention of avoiding ssh agent forwarding. Today I noticed that Gnome was starting ssh-agent, which I'm trying to avoid using so I disabled it. I'd like to not have the agent running so I can't accidentally start…
Gus
  • 127
  • 2
  • 11
0
votes
1 answer

Setup AWS Wordpress server for local access by SSH Tunnel Fail

Steps taken: Installed Debian Buster and Wordpress (Aws Lightsail own version). Firewall restrict http and https access to only 127.0.0.1 Setup Putty tunnel with SSH port 22 (privatekey) Putty SSH Tunnel Source port:9999 and Dynamic Enter…
Kaffeburk
  • 11
  • 2
0
votes
0 answers

ssh tunnel from nagios to greenbone socket

i got 2 servers running. serverA is a monitoring solution check_mk. serverB is a vulnerability scanner with gvm20.08 (openVAS). On my monitoring side i want to retrieve scans, tasks, targets etc. from my vulnerability scanner ,through ssh. so i need…
alessio
  • 11
  • 2
0
votes
3 answers

How to ssh tunnel through one-to-one NAT

I need a SSH tunnel from my home to private IP 10.4.100.6 as diagrammed here: +-------+ +-----------------+ +------------+ +-------------+ | | | | | | | | | Home +----+ foo.example.com +--+…
royco
  • 573
  • 3
  • 8
  • 17
0
votes
1 answer

How to setup RDP connection to a Linux (Ubuntu Server) VM in Azure using SSH tunnel?

I am reading https://docs.microsoft.com/en-us/azure/virtual-machines/linux/use-remote-desktop and is stuck at the following passage: Specifying a password does not update your SSHD configuration to permit password logins if it currently does not.…
mark
  • 725
  • 3
  • 15
  • 32
0
votes
1 answer

Is a VPN better than SSH port forwarding for Windows Remote Desktop?

Setting A small business (too small to justify a Terminal Services Gateway) wants certain users to be able to access their Windows 10 desktops from home. I have had good luck with Windows Remote Desktop for this purpose, however best practice…
mboratko
  • 399
  • 3
  • 8
0
votes
1 answer

How to troubleshoot linux iptable portforwarding

There's already tons of help and guide on how to do this. But for some reason I can't get it working and am not sure how to troubleshoot it. I've got an RDS postgres instance with the private IP 10.0.122.220. I also have a bastion host with a (yes)…
Rad
  • 195
  • 3
  • 10
0
votes
2 answers

Ssh relay without opening ports

I have machines A and B that can access a Relay machine via ssh, but not vice versa. Can I access machine B from A via the Relay machine without opening ports except 22 as that port is the only one accessible? For example, a possible solution would…
Philipp H.
  • 101
  • 1
0
votes
0 answers

centos opens only 505 ssh remote tunnels?

to evaluate how many ssh tunnels does centos 8 support, I write an app on windows that initiates ssh reverse tunnel to centos 8 through a loop var session = ssh("centos", "user1", "password1"); for (int i = 60001; i <= 61000; i++) { …
geek11
  • 3
  • 3
0
votes
0 answers

How to go passwordless for a nologin user and SSH tunnel?

I have a user to be used exclusively to access a floating license via an SSH tunnel. Match User myuser PasswordAuthentication yes ForceCommand /sbin/nologin PermitOpen localhost:55555 AllowAgentForwarding no X11Forwarding no …
Alexis
  • 172
  • 1
  • 12
0
votes
0 answers

ssh - forward credentials without Agent Forwarding (likeProxyCommand)?

I would like to be able to use my local credentials in a remote session without Agent forwarding if possible. The reasons: Agent forwarding has security issues (port accessible to remote root users) I am in a terminal session and ssh-askpass…
RabidMutant
  • 123
  • 5
0
votes
2 answers

Run 'kubectl' commands from my localhost to GKE - but via tunnelling through a bastion host

Currently... I have a GKE/kubernetes/k8s cluster in GCP. I have a bastion host (Compute Engine VM Instance) in GCP. I have allowlisted my bastion host's IP in the GKE cluster's Master authorized networks section. Hence, in order to run kubectl…
0
votes
3 answers

How to forward port from a remote server to a local machine behind NAT?

Scenario: Remote: CentOS 6, has public IP Remote<-->Internet Local: Win10, behind NAT Local<--->Local Router--->ISP NAT--->Internet Problem: Local wants to run a Service listening port 1234, but it's behind NAT so Local is not reachable to the…
7E10FC9A
  • 151
  • 1
  • 7
0
votes
1 answer

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 has multiple virtual interfaces created like…
GDKF
  • 1
  • 1