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

learn more… | top users | synonyms

2
votes
2answers
36 views

How can I maintain open ssh connection and use it from shell scripts?

Currently i invoke the following: $ ssh me@host.com my_cmd This is slow and not easy to automate safely. I would like to establish ssh connection once and have some script that will forward my ...
2
votes
1answer
683 views

Directx application using wine over ssh -x

I'm trying to run a Windows app (Artemis video game - server mode) on my archlinux server. As it is an windows application I have to run it using Wine. As I'd like to be able to launch the server ...
0
votes
0answers
29 views

SSH connection breaks after executing commands (broken pipe)

I am connecting to a remote machine on WAN and LAN networks using SSH. After logging in with username & password I type some commands in the shell. After the 2nd or 3rd command PuTTY throws the ...
1
vote
1answer
492 views

SSH tunnel to VNC on a Windows 7 system. Error: Tunnel device open failed

The system I'm trying to SSH from is Fedora 20 x86_64. The system tunneling to is Windows 7 Ultimate 32-bit and it has Cygwin installed with TigerVNC and OpenSSH. VNC is running on Windows 7 on port ...
58
votes
15answers
89k views

SSH tunneling error: “channel 1: open failed: administratively prohibited: open failed”

When I open this ssh tunnel: ssh -nXNT -p 22 localhost -L 0.0.0.0:8984:remote:8983 I get this error when trying to access the HTTP server running on localhost:8984: channel 1: open failed: ...
1
vote
1answer
1k views

Double port forwarding - SSH

NOTE: I'm not explaining why I want to do this. But here is the requirement. There are 4 hosts. Host A, Host B, Host C, Host D Host A is running some application which can be accessed at port 8001 ...
0
votes
1answer
56 views

ssh login with a tunnel through intermediate server in a single command?

Is there a way in a single SSH command to login via SSH to a remote server passing through an intermediate server? In essence, I need to create a tunnel to my "bridge server" and via the tunnel to ...
2
votes
1answer
39 views

How can I remotely access an intranet website from an external network via an SSH tunnel?

I recently setup FreeIPA on an internally accessible system at home. I'd like to manage this web UI from networks that are external to my LAN, but at the same time, I don't want to have to expose this ...
0
votes
0answers
29 views

SMTP traffic being forwarded through SSH even do AllowTcpForwarding is disabled

I have a situation on one server, where it seems to be spaming over traffic being sent over SSH tunnel. Output below shows connections being made to remote SMTP server that seem to be initiated over ...
2
votes
1answer
63 views

Does `ssh -D` proxy DNS request?

Is DNS resolution tunneled to the other end when I use a SOCKS proxy created with ssh -D? I have read the manual, searched the Internet, and found no documentation relevant.
20
votes
3answers
9k views

How do I know if my ssh tunnel is created successfully?

I rely on the following script tunnel.sh written by others to keep a ssh tunnel alive: #!/bin/bash export SSH_HOST=tim@server if [ ! -f /tmp/.tunnel ] then echo "Creat SSH tunnel" ssh -f -D 9999 ...
1
vote
1answer
35 views

How to ignore “Unable to connect to target host” error messages

I am using an SSH tunnel. It works fine but it gives me these messages regularly: channel 5: open failed: connect failed: Unable to connect to target host channel 4: open failed: connect failed: ...
1
vote
1answer
50 views

Ubuntu 14.04 I can't get SSH tunneling to work with -g switch?

I'm running this command on myServer: ssh -g -p 9922 -f myuser@serverOnOpenInternet -L 1212:serverBehindFirewall:80 -N serverOnOpenInternet runs sshd on port 9922. (not my call) Once I run the ...
0
votes
1answer
24 views

Forwarding traffics come from SSH tunnel to VPN tunnel on a Linux device

I want to route network traffic that comes from one end of ssh tunnel (constructed by ssh dynamic port-forwarding) into one end of VPN tunnel. Given four linux devices A, B, C and D, for example, I ...
2
votes
3answers
13k views

sshd_config MaxSessions parameter

I have problem with "MaxSessions" parameter in sshd. I would like to restrict number of sessions via one ssh connection. For example for tcp forwarding. When I set MaxSessions to 0, logons are not ...
1
vote
1answer
184 views

Setup SSH tunnel on existing connection from script

I want to establish an SSH tunnel on an existing connection. The tricky part is doing it from a script (a custom shell I need to allow users only some specific things, like setting up this tunnel). ...
2
votes
1answer
41 views

Is sshd_config TPCKeepAlive still using unencrypted channel and therefore vulnerable

This post from 2008 in ubuntuforums recommends disabling TCPKeepAlive Disable TCP KeepAlive messages. These messages are spoofable and are sent outside of the encrypted channel, and ...
4
votes
3answers
151 views

How to browse a website as if I am in USA? [closed]

I am in Taiwan right now and whenever I go to a website that I could browse in USA, it directly transfers me to the Asia site. There is no way to browse the USA version of the site, probably because ...
5
votes
1answer
642 views

Run SSH SOCKS5 proxy on system startup

I want to setup a linux server (Ubuntu Server 14.04 in this case) to be used as a SOCKS5 proxy by software on another client. Now this is pretty easy by running ssh -f -N -D 0.0.0.0:1080 localhost as ...
2
votes
2answers
115 views

sshfs over mosh tunnel

I am using sshfs over ssh tunnel. The reason for this is because I do not have direct access to machine from which I want to mount file system. This command establishes me tunnel: ssh -o ...
1
vote
1answer
62 views

How SSH Tunneling is working

can someone explain how the following ssh tunneling is working ? ssh root@localhost -P 2222 -pw 1234 L 3300:remote_WIN_machine1:3389 this ssh command is running from Linux machine while the remote ...
1
vote
1answer
38 views

Tunnelling through multiple machines on Red Hat with varying users and keys

I'm trying to SSH tunnel hop to a Tomcat7 server where JMX was configured on port 9090. Essentially: localhost > hostB > hostC. In a terminal, from localhost to hostB: ssh -L ...
2
votes
0answers
41 views

user@localhost password not accepted when ssh-ing through a tunnel [closed]

I am trying to log into a workstation through another server, following this guide http://serverfault.com/questions/53080/how-to-enable-ssh-x11-forwarding-through-additional-server Step 1, connecting ...
0
votes
0answers
35 views

Accessing forwarded port via SSL/TLS

I have a Raspberry Pi that sets up an SSH tunnel with my VPS so that I can access several things remotely. My Pi forwards its local port 80 to my VPS's port 3180, so I can access it via ...
0
votes
0answers
45 views

Redirect traffic flowing into SSH server to privoxy, then to TOR

I own a Ubuntu VPS that I am using for SSH tunneling. I want the traffic to be redirected to TOR network. Some research showed that I can do it by using Privoxy, that will accept traffic from SSH ...
1
vote
1answer
189 views

Why SSH login works in shell but fails in all third parties via ssh tunnel?

I'm using ssh to log in (prompt password first time) on a remote server. In shell, using this command: ssh root@myserver.com works well! But all other db software applications that I tested ...
1
vote
1answer
294 views

How to create reverse dynamic ssh port forwarding

I'm trying to set up an ssh tunnel layout where: client A (not ssh-server enabled) initiates ssh connection to server S socks server is opened on server S:yyyy that tunnels all data via client A ...
1
vote
0answers
34 views

Correctly closing multiple hop SSH tunnel

I want to tunnel VNC traffic to host2, which is only accessible from host1, whereas host1 is publicly accessible. I setup a multi-hop SSH tunnel as described in this question, using: ssh -L ...
1
vote
0answers
64 views

It is possible to make an IPSEC VPN Bonding?

I wanted to know if It is possible to bound two IPSEC tunnels ? I've already done a VPN bonding of SSH tunnels, but It will be better if I use IPSEC.
2
votes
0answers
78 views

Tunnel audio chat over ssh

I'm running a HelpDesk for internal call center employees. Right now, we can chat with employees over our web portal and remote-control their Linux Mint workstations via VNC over a secure SSH tunnel. ...
1
vote
1answer
607 views

Channel 0: open failed: administratively prohibited: open failed

I was doing this tutorial, but when it comes to the part where O should run these commands: local-server# ssh -NTCf -w 0:0 87.117.217.27 local-server# ssh -NTCf -w 1:1 87.117.217.44 It says: ...
2
votes
2answers
478 views

How do I route a spare network interface through an SSH tunnel?

I just bought a Raspberry Pi and I am wanting to route an ad hoc wireless network interface fully through an SSH tunnel that was created using another wireless interface. I want to do this so that I ...
1
vote
1answer
181 views

ssh tunneling: connection closed by foreign host

I'm trying to create a scenario to test a simple ssh tunneling, just for using a simple telnet. I have two hosts: ubuntu and suse. Both of them have the other hostname on /etc/hosts file for address ...
0
votes
1answer
46 views

What's the diference between a SSH tunnel and a VPN? [closed]

What situations do I have to use one in detriment to the other? I believe that both serves for the same situations at the most of the case, isn't?
0
votes
1answer
90 views

How do I tunnel traffic through a VPN and then through another machine

I recently started working from home using a laptop (A) that connects to a corporate network over a VPN. The VPN end point (B) on the corporate side then has two ports, 3389 for RDP and 22 for ssh, ...
0
votes
1answer
41 views

SSH Tunneling does it multiplex?

I'm writing an application which will be doing something similar to SSH tunnelling (port forwarding and reverse port forwarding). However, SSH will not be involved at all, hence why I'm not using any ...
5
votes
2answers
206 views

ssh tunnelling explanation

I have a question regarding ssh tunneling. I've read this article http://www.popcornfarmer.com/2009/01/ssh-tunneling-tutorial/ I would like to make X forwarding work and run some X applications ...
0
votes
0answers
72 views

Mounting nfs4 partition over ssh tunel

I am following this manual on how to mount an nfs port over an ssh tunnel: https://blogs.oracle.com/shepler/entry/tunneling_nfs_traffic_via_ssh I need this because I want to mount an nfs partition ...
1
vote
2answers
77 views

How do I prevent just 'exit' from being saved when I close an SSH connection?

When searching for a way to do this on Google, all I can find are ways to quit the session without saving history (like kill -9 $$), but I have the opposite problem. I want to save all of my history, ...
3
votes
4answers
2k views

Is there a way to have regular expression in ~/.ssh/config

I have two set of server. Test on production. All server have internal ip. currently I am using alias to login: Host pro-10 Hostname 192.168.1.10 ProxyCommand ssh production-server nc %h %p For ...
1
vote
0answers
30 views

Appearing to be on the same network

I have a user that needs to connect to a machine located on a private network at another facility. Basically 192.168.0.20 -> 192.168.0.1 -> Internet -> 192.168.1.1 -> 192.168.2.1 -> ...
2
votes
1answer
160 views

Port forwarding for VPN connection

I'm using a public wifi hotspot. Usually when I connect to these, I immediately connect to my college VPN. On this hotspot, only browsing works (no program other than a browser seems to be able to ...
1
vote
1answer
60 views

Automating setup of the SSH tunnel

I need to frequently login to many machines but I can only login to them from a proxy machine or using an SSH tunnel (by tunneling through that proxy machine). The problem is that I cannot use ...
1
vote
1answer
48 views

How can I configure Linux to reopen my SSH tunnels after the connection has been restored?

I am currently working with some SSH tunnels configured. Many times when I loose connection to the Internet or hibernate my laptop, I need to reconfigure the tunnels (i.e., do killall ssh and then set ...
3
votes
1answer
105 views

SSH Tunnel with autossh

I can't seem to find a close enough example but here it goes. I'm trying to in the end setup rsync from one server to another through an ssh tunnel. Local (my machine) will run the rsync to pull ...
3
votes
1answer
903 views

x11 connection established but magic-cookie value different?

From my local machine I ssh to a remote server along with authentication regarding X display. I know that in this process, MIT-MAGIC-COOKIES are used and the value in both server and client needs to ...
0
votes
1answer
435 views

CentOS with AutoSSH, Port Forwarding Clarification

I'm using autossh and set it up like shown in the following example: http://surniaulula.com/2012/12/10/autossh-startup-script-for-multiple-tunnels/ I found it works really well, but need some ...
1
vote
1answer
75 views

killing tunnels for a user connected with ssh -N

I created a forward only ssh connection with the following: ssh -i id_rsa -o TCPKeepAlive=yes -o ServerAliveInterval=10 \ -N -n -R 127.0.0.12:8888:127.0.0.12:8888 fwduser@192.168.1.201 Mow, ...
1
vote
0answers
72 views

UDP Tunnel via SSH Confusion

Overview: I have a software program which communities on UDP port 1046 and I am hoping to hook two computers together. Laptop (Required to ALWAYS have VPN connection) Desktop (Public ip address) ...
0
votes
1answer
73 views

One liner to ssh into a server, specifying an intermediary to tunnel through [duplicate]

At my company, In order to SSH into anything, I first have to SSH into an intermediary server like so: (me@local.machine) ssh intermediary.server.com (me@intermediary.server.com) ssh ...