Questions tagged [ssh-tunneling]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
16 views

Cannot reach ssh / autossh from outside the remote server

I have a problem with my autossh setup: An OpenWRT router has autossh 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
0answers
16 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
8 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
29 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
35 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
115 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
24 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
39 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
31 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
21 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
54 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
27 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
19 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
25 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
31 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
19 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
329 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
78 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
112 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
24 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
72 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
vote
2answers
109 views

In SSH Local Port Forwarding what DNS server is used to resolve the host (not the ssh gateway)?

In local port forwarding, what DNS server resolves the name of internal_db.local? Would that be the internal SSH server's DNS? (that's what I would think) Or is it the external DNS server that ...
2
votes
1answer
67 views

Is it possible to run rsync dry-run, confirm, then real run in one command (without having to give the password again)?

Now, working from home, I do some work on my home computer (because the vnc connection is too slow for it) and some on my work computer (because it is only possible there). Therefore I have a copy of ...
0
votes
2answers
60 views

Possible to run rsync over scp?

Is it possible to run rsync over scp. Reason for involving scp: using authentication and encryption. Reason for not using rsync over ssh: not giving full shell access to the remote server. Should ...
0
votes
1answer
76 views

Recording the dynamically allocated port number with SSH remote port forwarding

In the SSH documentation, for remote port forwarding, it says: If the port argument is ‘0’, the listen port will be dynamically allocated on the server and reported to the client at run time. When ...
0
votes
1answer
118 views

SSH reverse tunnel - disable request for password when using key authentification

I have set up a reverse ssh tunnel using ssh -R 22100:127.0.0.1:22 remoteuser@remotehost on machine 1. This machine authenticates with the remote using keys. The remote host uses the following ...
0
votes
0answers
82 views

Ansible through jump host that requires to change user

I usually log to the server target_host using the following commands: ssh -i ~/.ssh/id_rsa_jump_host local_user@jump_host sudo su - jump_host_user ssh target_user@target_host If I add the following ...
0
votes
0answers
48 views

How do I forward from an IP address on my *local* network to a remote machine via SSH?

I feel like this should be much easier than it's turning out to be - but basically: On my local home network, I have an IP camera at IP address 192.168.0.106:80 and 192.168.0.106:554 (camera ...
0
votes
1answer
51 views

SSH Tunnelling through an IP alias

I have a machine with 3 IPv4. Let's call them as example: 8.8.8.1 (eth0) (main ip) 8.8.8.2 (eth0:1) (ip alias) 8.8.8.3 (eth0:2) (ip alias) if I create an SSH tunnel and configure my browser to use ...
-1
votes
2answers
51 views

Can I leave a process running on the computer I'm connecting to through ssh such that I can turn my own computer off? [duplicate]

I'm connected to a server through ssh and want to run a process that will take a long time. I connect to the server by using ssh in my laptops terminal, but I want to be able to turn my laptop off but ...
0
votes
1answer
23 views

Connect (SSH) to the same server, through two different gateways, with different server users

What I would like to achieve is to be able to connect to some target.server from my local machine, without having to type any passwords, with the following commands: ssh user1@target.server ssh user2@...
0
votes
1answer
14 views

Access NATed remote system through an existing ssh connection

There is a machine RemoteA that is behind a NAT somewhere on the internet. It can connect to an ssh server. There is another machine called RemoteB that also has a connection to the same ssh server. ...
0
votes
1answer
69 views

How to use my VPS to redirect traffic to certain port tomy Windows PC which is behind NAT?

I have an Ubuntu VPS which is accessible. Also, I have a local Windows PC which is not, because of NAT. What I want to do, but am struggling with: I want that all traffic to certain port to the VPS ...
1
vote
1answer
95 views

How to access vnc over HTTP using SSH Tunnel?

I have an AWS Debian9 EC2 instance running, I have set up TightVNC and can access the server via a VNC client. I've allowed access to ports 5900, 5901, 22, 80 and 443 via the security groups in AWS. ...
0
votes
1answer
60 views

How to proxy browser traffic through ssh tunnel?

Currently I have a tunnel setup with my work Linux box (remote machine) and my macbook at home (local machine). Jira and other tools can only be accessed through our intranet so I'd like to use SOCKS ...
0
votes
0answers
72 views

SSH through multiple servers (to access visdom server)

I am hosting a visdom server (essentially I need to access a website hosted locally) on my home computer. I am running code on a server (private_server) that I cannot access directly from my home ...
0
votes
1answer
16 views

Is it possible to authenticate a Server by using its public Key in Client?

Our existing mechanism, for password less authentication in GNU/Linux, is to create the ssh-keygen in the client and copy the public key of client to server and the server can be authenticated from ...
0
votes
1answer
73 views

How to run a local script with whitespace in arguments on a remote machine through multiple SSH?

Similar to my question here, except with multiple ssh, and similar to this question but with white space in the arguments... I would like to run a local script, test.sh, on a remote server via ...
1
vote
0answers
22 views

Tunnel to access internet

There is a central server A that doesn't have internet access. I am supposed to log in to a server B (that has an internet connection) and launch jobs on A. I wonder if I can create a tunnel from A to ...
0
votes
0answers
242 views

Change destination IP of the packet to localhost and redirect it to another port

Following is the requirement First, change locally generated requests/packets destination IP to localhost. For an example 172.17.0.1:7199 -> 127.0.0.1:7199  Then redirect this request/packet to ...
0
votes
0answers
144 views

Use Network Namespace for SSH Tunnel

I have an Ubuntu 18.04 server in which I've created two virtual interface pairs (veth0a & veth0b) and assigned the end of one interface (veth0b) to a new network namespace (netns0): ip netns add ...
0
votes
3answers
206 views

Tunneling without SSH

If I understand correctly, SSH tunneling works as follows: Machine B is running the SSH daemon (process b). Machine A opens an ssh client (process a) Machine A connects its ssh client to machine B'...
0
votes
0answers
57 views

Why does reverse SSH tunnel endpoint server crash?

UPDATE: This may be an ISP or routing issue. The crash appears to happen only with specific user locations. Not browser dependent, but maybe ISP dependent. I'm using an Amazon Web Services virtual ...
0
votes
0answers
49 views

How to make ssh local forward through intermediate server's port

I want to connect to target_server from local_pc through jump_server. Besides, I also want local forward the specified ports of each machine, i.e. local_pc:port1 --> jump_server:port2 --> ...
1
vote
0answers
99 views

Is there a way to daisy-chain SSH commands using ssh config?

I am trying to SSH from a docker container to a remote server. The docker container is on a Mac. All the authentication to connect to the remote server is done from the Mac, not the docker container. ...
0
votes
0answers
244 views

Why does this ssh tunnel command give an error on Mac but not Linux?

I was trying to tunnel a psql connection through a remote login server to a postgres database server, and I encountered some kind of difference in the way the arguments are parsed that led to a period ...
0
votes
0answers
56 views

How to configure SSH Dynamic forwarding through 2 hops?

A Raspbian device is configured on a remote LAN. The remote LAN's router is accessible via SSH dropbear. The goal is to access the router's configuration web (port 80) GUI through an SSH tunnel ...
0
votes
2answers
82 views

Dyamic tunnel troubleshooting

Goal: Configure Ubuntu and Firefox to SSH into a remote Asus router and access the remote router's configuration GUI via Firefox. top from the remote router returns: PID PPID USER STAT VSZ %...
0
votes
1answer
176 views

Tunnel on remote MS-windows port 443

I need to create a tunnel in a remote MS-windows, so the port 443 in MS-windows is redirected to a remote target on port 443. What I'm trying to do is this, from my remote server: ssh -N -R 443:...

1
2 3 4 5
12