Questions tagged [ssh-tunneling]

An SSH tunnel provides an encrypted channel based on the SSH protocol.

Filter by
Sorted by
Tagged with
10
votes
4answers
2k views

Can I have a single server listen on more than 65535 ports by attaching an IPv4 address

I have a number of servers to SSH into, and some of them, being behind different NATs, may require an SSH tunnel. Right now I'm using a single VPS for that purpose. When that number reaches 65535 - ...
0
votes
1answer
16 views

How to terminate SSH tunnel background process

I open an SSH tunnel (for port forwarding) from Windows 10 PC to a remote Linux server by typing the following command in Windows Command Prompt: (Note: substitute the actual DNS for ...
0
votes
0answers
21 views

Using SSH terminal (stdio) as a tunnel for mongo (-L option not allowed)

Here's the thing: a mongodb client on the client machine a SSH terminal on a jump machine the mongodb server on the target machine I would like the client to connect to the server through the jump ...
0
votes
1answer
23 views

SSH: ProxyJump still requires password

I used to connect to a remote server (e.g., userT@target.example) through a bastion machine (e.g., userG@gateway.example) using the following command from my local machine: ssh userT@target.example ...
3
votes
1answer
55 views

ssh-copy-id successful but still getting password prompt

I have to connect to my work pc, and I'm working with this config, Host work User name HostName 192.168.31.*** ProxyCommand ssh.exe p***@middle_host nc %h %p Here, middle_host is ...
0
votes
0answers
21 views

Making sure traffic does not bypass shuttle when ssh connection breaks

I would like to use sshuttle on machine A to vpn all my traffic from behind a firewall. My remote, machine B is a raspberry pi at my house connected to a ddns service (I am too cheap to get a static ...
1
vote
1answer
35 views

How to access stdin/stdout from detached program?

I am trying to understand how to access stdin an stdout for a process. I have a remote machine accessible only by SSH and I want to run a terminal based program in the background. That is, I fire up ...
-1
votes
0answers
24 views

command succeeds with exit code 0 but fails when put with until loop

As you can see the below ssh port forwarding command is successful: $ ssh -p 3334 rustemince@localhost 'lp -d Brother_HL_L2350DW_series /Users/rustemince/Printed/online_order_202111716_test.pdf' >/...
0
votes
1answer
32 views

ssh port forwarding does not work. Getting error

I have a local laptop MacOS hence called localmac having macuser that needs to be controlled (by firing ssh commands) by a remote server hence called remotelinux having linuxuser. On my localmac i m ...
1
vote
0answers
21 views

Creating a SSH tunnel with bind option and no remote host

I create a SOCKS5 proxy via SSH tunnel as ssh -N -D 8081 -B tun1 user@Remote-IP to use 127.0.0.1:8081 proxy (e.g., in FireFox). However, I do not want to connect to Remote-IP. I just aim to pass the ...
0
votes
1answer
36 views

How to check for active ssh port forwarding connections on MacOS

On my local MACOS I setup a reverse ssh tunnel using the below command. ssh -fnN -R 2222:localhost:22 remoteuser@remotelinuxhost And then my MACOS is controlled by the remote linux host which fires ...
1
vote
1answer
33 views

Reverse SSH works but not passwordless. Getting password prompt

I have two systems Personal MacOS Laptop to be referred as system-Laptop having user laptopuser. It does not have "NAT" Server Linux to be referred as system-Server having user serveruser ...
0
votes
0answers
18 views

Can you configure NGINX to have both RDP and SSH on the same local IP?

I was following this link (https://www.nginx.com/blog/running-non-ssl-protocols-over-ssl-port-nginx-1-15-2/) on how to setup ssh on NGINX, it works. But I can only run either SSH or RDP, not both. I'm ...
3
votes
1answer
41 views

Can you configure NGINX to redirect a HTTP request to SSH connection?

I have a server that is only accessible through a single port (I use a VPN with port forwarding). I have setup a reverse proxy using NGINX for some HTTPS servers that I'm hosting. I'm wondering if I ...
1
vote
0answers
26 views

SSH intense tunneling causes sshd service to close the connection, while manually running /usr/sbin/sshd doesn't

SSH server runs Centos 7, and I'm connecting to it from Windows 10, via Putty. I had to workaround some VPN settings, so a great number of SSH tunnels are set (something like 2000 combinations among ...
3
votes
1answer
47 views

How can I transfer files from my local system to another via a gateway system (and vice versa) fia SSH/SFTP?

I have the following situation, (1) local machine ↔︎ (2) cluster gateway ↔︎ (3) cluster machine and I want to transfer files from my (1) to the (3) and vice versa. There is no way to directly ssh from ...
1
vote
1answer
28 views

ssh reverse tunnelling access local web server from internet

Hi have local web server running on the locahost, localhost:8765 and I need to access this server from outside network. Also I have public server running ssh server and Apache server both. I have ...
1
vote
0answers
26 views

How do I configure a local SOCKS server to proxy connections to a VPN tunnel?

I want to open an openVPN tunnel on my router (ubiquiti EdgeRouterX) and use SSH to proxy requests to that tunnel. In other words I ONLY want requests arriving via the ssh tunnel to traverse the vpn. ...
0
votes
0answers
40 views

can I combine SSH multiplexing with ProxyJump or ProxyCommand (aka 'bastion') forwarding?

I've got a reasonably standard jump/bastion host setup, where I have to SSH from A into C, via B : Host A --> Host B --> Host C I've gotten SSH multiplexing set up, which dramatically reduces ...
0
votes
0answers
53 views

virt-manager cannot connect to remote system

I have a KVM/QEMU hypervisor system that I administer from virt-manager on a desktop system. It has stopped working and cannot connect, though I can log in via SSH on a terminal. Google did not lead ...
0
votes
1answer
27 views

Monitoring SSH Bastion Metrics

Given a hardened EC2 instance serving as a bastion (laptops ssh to servers past the bastion via ProxyJump), what are some key metrics to monitor? In particular, I'd like to know if there are any SSH ...
0
votes
2answers
129 views

“Permission denied (publickey,gssapi-keyex,gssapi-with-mic)” when attempting to SSH from server 1 to server 2

I'm trying to ssh from my backup server (CentOS 7) to my production server (CentOS 8), to pull a database backup. I can't work out what I'm doing wrong. I'm using root on both servers. I've taken ...
0
votes
0answers
141 views

SSH tunneling error: “channel 2: open failed: administratively prohibited: open failed” with FoxyProxy config

I am using ssh config and a proxy tool called FoxyProxy so that I can bring up the Spring Boot console in a browser when I ssh in. I am using this with a number of bastions, but for only ONE bastion ...
1
vote
1answer
39 views

SSH remote forwarding results in 404 Not Found

On a remote server, remote1.myorg.io, I am unable to access a web resource, say, http://spaa.acm.org/2020/SPAA2020TutorialProgram.pdf. So, on the remote server, I'm using ssh to create a server on 127....
0
votes
1answer
96 views

ssh Tunnel (-w) “Tunnel device open failed.” on mac os

if i do macos - ssh server1 -A server1 - sudo -HE ssh root@server2 -w 0:0 all work fine tun device up success ifconfig -a #contain tun0: flags=4240<POINTOPOINT,NOARP,MULTICAST> mtu 1500 ...
0
votes
0answers
61 views

Connecting to PostgreSQL with JDBC through a SSH tunnel, I get data for a while and stops, but SSH connection is still alive

Im getting data from a PostgreSQL DB through an SSH tunnel: autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -L 9999:localhost:5432 root@mypostgresip The data ...
0
votes
0answers
48 views

ssh - can't use ProxyCommand for intermediate host, but can use rsync

Struggling to figure out where I'm going wrong here I need to move files from server A to server C via intermediate host server B I can do this using rsync for a single file easily with the following ...
0
votes
0answers
20 views

rsync - ssh over two intermediate servers

is it possible to modify an rsync call like: rsync -avLuR -e "ssh -A user@ip1 ssh" $srcLoc1 user@ip3:$destLoc1 to be something like: rsync -avLuR -e "ssh -A user@ip1 ssh -A user@ip2 ...
1
vote
1answer
51 views

Cannot reach ssh / autossh from outside the remote server

I have a problem with my autossh setup: An OpenWRT router has autossh sshtunnel configured to connect to an OVH server I have and setup a remote port on 5922: openWrt$ ssh -R *:5922:localhost:22 user@...
0
votes
1answer
38 views

SSH client denying connection with error “too many files open”

Running a reverse ssh client on a machine. After some time get a connection denied request, with logs on the ssh client stating Oct 12 00:21:19 ipaserver0 reverse-tunnel.sh: debug3: channel 1018: ...
0
votes
0answers
30 views

Implementing ProxyJump command using Golang

I'm trying to write an SSH server using Golang and we need to be able to redirect any incoming SSH request to an arbitrary end service. We're setting up ProxyJump so the users don't have to do it ...
1
vote
2answers
72 views

Intercept a SSH connection through a proxy machine and forward it to another (remote) machine

I want to design a proxy, whose IP address is public. Clients know the IP address of that proxy and can SSH to it. However, there is a host whose IP address is unknown to the client. The purpose of ...
1
vote
1answer
40 views

How to organize SSH users and setup them?

I want all users to use your public/private key to any kind access to my server. Into SSH configurations, I will setup 3 groups: sshaccess: Users can use shell, SFTP and tunnels; sftpaccess: Users ...
0
votes
1answer
700 views

SSH Port Forwarding Using a Jump Host

I am trying to figure out how to get a jump host to work with AWS Cloud9. Below is a diagram taken from the blog post (on my staging server) there I am writing on the subject. Please refer to the blog ...
0
votes
0answers
26 views

is it possible to add a reverse tunnel through the jump host when making a multi-hop ssh?

I have a configuration with 4 servers residing on different subnets. The existing network restrictions are hard constraints. proxy1 is running a squid proxy and able to reach the internet; no other ...
0
votes
0answers
58 views

ProxyJump with inherited username

Currently my ssh setup from my local machine with username bobby is as follows $ ssh -J gateway bob@server1 . . . $ ssh -J gateway bob@server5 . . . $ ssh -J gateway bob@cluster1 . . . $ ssh -J ...
0
votes
0answers
49 views

Start a reverse SSH tunnel in a oneshot systemd service

I have a headless Debian virtual machine running at a remote site performing backups from a server at a third site. The backup routine is a Type=oneshot systemd service run by a timer every 10 minutes....
0
votes
0answers
31 views

How do I make autossh more permanent, i.e. always try again?

I am using autossh (via systemd service manager) to create a permanent reverse ssh tunnel to be able connect to the computer in NAT network behind firewall from outside (I used this tutorial): /usr/...
1
vote
2answers
118 views

SSH tunnel between 2 machines that can only ssh to a 3rd machine, but not directly to one another

There are 3 machines in my setup: M1 M2 M3 I need to open an SSH shell on M1 controlling M3. Both M1 and M3 are behind different firewalls, and can't reach one another directly. Both M1 and ...
0
votes
0answers
153 views

SSH jumphost does not work: “unkwnon option --J” [duplicate]

I try to do a ssh jumphost with a command ssh -J name@server1 name@server2 The answer is unkown option --J I try to reinstall ssh but it does not work. I am on ubuntu 16.04 Anyone has an idea ?
0
votes
0answers
21 views

Forwarding traffic over VPN

Hi I am very new to linux environment and VPN technologies. I have a Kali VM which is connected to a remote domain joined Windows host in my organization over VPN. For VPN connection, I am using ...
0
votes
1answer
56 views

How to SSH tunnel to a destination host resolved via internal DNS on the bastion host

I have a remote host 123.456.789 that I am able to SSH into. From within the SSH host, a private database host can be accessed. I would like to forward my local port on my computer TO the private ...
0
votes
1answer
32 views

ssh jump through a port

I use ssh -p 54321 john@123.4.567.89 to login a gate server and then ssh johnaddress to login the actual GPU server, now how do I combine these 2 commands in one using -J? ssh -J -p 54321 john@123.4....
0
votes
0answers
4 views

how configure tunneling on distribution RHEL or CentOS?

I lost connection form my lab server to application server, there are one way to connect by one intermedie server between them. I thought its possible using tunneling.
0
votes
0answers
21 views

autossh configuration for accessing a system in private subnet

Want to set up a proxy to access a system in a private subnet. We have a system A in our Office network. System B and System C are in cloud. System B has a public IP. Need to access System C in Cloud....
0
votes
1answer
811 views

What is a Linux alternative to SVL Header Injector and HTTP Injector? [duplicate]

I want to bypass the ISP's firewall, and succesfully did it on Windows and Android by sending a set of HTTP headers and using CONNECT method to establish an SSH connection to a remote (example) SSH ...
0
votes
0answers
190 views

In SSH Terminal, I can't type any character. All character is changed strrange character

I'm sorry for my poor English. My PC OS is Windows 7. When I ssh Ubuntu 18.04 remote server (through gateway server), all characters I type are changed by a strange character: ^@ is appended after ...
1
vote
1answer
303 views

How can I use a reverse tunnel with sshfs?

I have a local machine which connects via ssh to a remote machine using a middle machine and a reverse ssh tunnel from remote to middle: remote$ ssh -p <sshd port> -NTR <local port>:...
0
votes
0answers
33 views

How can I access to my Jupyter Notebook on second remote server by using putty?

I have connected to my Ubuntu 18.04 system remotely from my windows 8 machine with Putty-->ssh-->tunnel-->adding port as 8888 and destination address as localhost:8888-->open. By typing ...
0
votes
0answers
236 views

Using ssh -t works to connect over a Jump Host but ssh -W does not work

I'm trying to connect my computer LocalClient to RemoteHost via a JumpHost that I have no control over. I have complete control of the client and RemoteHost (admin privileges) I can connect to the ...

1
2 3 4 5
12