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

learn more… | top users | synonyms

2
votes
1answer
2k 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
0answers
18 views

autossh public/private key not working

I'm trying to set up autossh and have gotten it to the level where I can establish the remote tunnel connection but I'm having trouble setting up the key pair so I don't get asked for the password ...
4
votes
5answers
553 views

Does ssh send the password over the network?

Basically the entire question is in the headline: Does ssh send the password over the network? Presuming of course that login via username and password is used. I'm asking because if ssh doesn't send ...
1
vote
1answer
1k 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 ...
4
votes
1answer
1k 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 ...
80
votes
19answers
134k 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
0answers
20 views

Access office URL through browser outside office

I work as a web developer in a office. I have a linux machine as a work machine. I develop code then test it on a browser. I can only access the URL that I use to test my pages inside my office. I ...
0
votes
1answer
42 views

Problems with SSH ProxyCommand [closed]

i have some problems with the ssh proxycommand. The authentication on the proxy works fine, but when i want to login to the remote-host it fails. The problem seems to be, that the proxy tries to login ...
7
votes
1answer
50 views

Current SSH connection properties (cipher, auth type, timeout, etc)

After a connection is established with SSH, how we can get the current connection properties ? Is there a way to know what cipher(s) is being used ? Properties of the authentication ? Protocol ...
1
vote
1answer
32 views

Using shell code for LocalForward in ssh config file

I have this configuration in my ssh config file, Host *+* ProxyCommand ssh $(echo %h | sed -e 's/+[^+]*$//;s/\([^+=]*\)=\([^+]*\)$/\2 -l \1/; s/^\([^+:]*\):\([0-9]*\)+/-p \2 \1+/') -W $(echo %h | ...
2
votes
1answer
1k 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 (...
6
votes
3answers
9k 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: ...
13
votes
3answers
14k views

ssh port forward to access my home machine from anywhere

http://serverfault.com/questions/303937/how-to-make-freebsd-box-accessible-from-internet I want to understand this whole process of port forwarding. I read so many things but failing to understand ...
3
votes
1answer
35 views

Fit timestamps of multiple files/folders to existing ones

I've copied a large directory to another location (through a network). I needed to preserve all the timestamps (especially ctime and mtime). However somewhere in the process I screwed things up. (I ...
0
votes
1answer
28 views

How can I forward multiple ports in the SSH configuration with LocalForward?

I want to forward multiple ports. So far my configuration looks like this: Host myhost Hostname 123.123.123.123 IdentityFile ~/.ssh/id_myhost LocalForward 8811 localhost:8811 ...
0
votes
1answer
112 views

SSH Tunnel “channel x: open failed: connect failed: Connection timed out”

I've Googled and searched far and wide for some sort of "solution" to this problem; however, the best answer I got is "There's nothing that can be done." Of course, that's unsatisfying, so here goes: ...
1
vote
1answer
310 views

Use HAProxy to tunnel SSH through https

I have a server with Apache webserver on it and many websites running on http (port 80) and https (port 443). I would like to use a proxy on port 443 in between Apache and the user. In this page, ...
-2
votes
1answer
27 views

How do I ssh my Mac from another server? [duplicate]

I want to ssh my iMac at home from my MacBook when I'm away, but I can't figure out how to ssh when I'm not on the same local network. I have configured my iMac to accept ssh through the "Remote login"...
1
vote
1answer
70 views

For some reason “sudo ssh -w any -o Tunnel=ethernet root@remote” creates tun devices instead of tap devices

To connect multiple tunnel endpoints to a common bridge interface, I have to create a Layer 2 tunnel over ssh. The server is Ubuntu 10.04, the client is Ubuntu 14.04. I have enabled PermitTunnel yes ...
2
votes
1answer
222 views

Cron job running but not establishing tunnel

I have a script which establishes a reverse tunnel on an endpoint HostB. It looks like this: cat tun.sh #!/usr/bin/env bash # Test code /usr/bin/ssh -V 1> /home/userA/bin/tun.stdout 2> /home/...
3
votes
1answer
48 views

Cannot tunnel over ssh without command/getting shell [duplicate]

I would like using ssh tunneling options. For that purpose I use command: ssh -L 1234:localhost:5678 host however this logs me into the shell on remote host. Next I tried -f as: ssh -f -L 8999:...
1
vote
1answer
91 views

Firefox with X11 Forwarding is not working

I cannot open firefox via ssh: I've tried with: ssh -vvv -X user@192.168.40.21 But it outputs: debug3: send packet: type 50 debug2: we sent a password packet, wait for reply debug3: receive ...
0
votes
2answers
83 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 ...
0
votes
1answer
52 views

reverse tunnel on a multi hops ssh tunnel

I'm a windows user, that needs to access his server at home using a double hop ssh tunnel. I've configured via putty, a socks tunnel on a 2 hops ssh connection using a dynamic port, based on this ...
1
vote
1answer
46 views

How to rsync files between two remotes with an explicit port and different usernames?

I want to rsync files between two remote servers. I tried to follow the next solution of @roaima: http://unix.stackexchange.com/a/183516/137526, but I need a more delicate solution, for two reasons: ...
2
votes
2answers
76 views

Combine Two SSH Commands

The first ssh command is done on my computer, I enter the key password, then put the second ssh command in while logged into the server. ssh -i cloudkey -L 6000:localhost:6001 admin@54.152.188.55 -p ...
3
votes
1answer
34 views

How do I make GPG use keys accessed over SSH?

I have my GPG keys stored on a remote server (accessible via SSH) due to some technical constraints. Is it possible to make GPG use those keys transferred over ssh, without actually copying them ...
0
votes
1answer
38 views

SSH - How To Make Three Computer Tunnel?

ComputerA connects though putty to Server at port 77, and there is a reverse tunnel set up from the Server at port 6666 to ComputerA at port 22. ComputerA also has a ssh server set up with a user ...
2
votes
1answer
62 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 5901:...
0
votes
1answer
19 views

Port tunneling via ssh. Is the traffic redirected via port 22?

I wonder, whether the whole traffic is redirected through port 22, if I create a SSH tunnel? For example if I create a tunnel to a remote pc joes-pc, will it be enough to open port 22 on joes-pc? ...
2
votes
0answers
69 views

Schedule on boot persistent reverse SSH tunnel on Mac OSX

In attempts to run a self sustaining reverse ssh tunnel I have tried installing the 'autossh' package with brew. Autossh works alone when ran through the user's prompt, but not with launchctl/launchd. ...
24
votes
2answers
23k views

SSH: tunnel without shell on ssh server

I have to set up a tunnel between two hosts. For this I use ssh in this way: ssh -L MY_LOCAL_PORT:FOREIGN_ADDRESS:FOREIGN_PORT MYUSER@SSH_SERVER after that, I log in to my SSH_SERVER. How can I ...
1
vote
1answer
49 views

Setting up port forwarding on router for reverse SSH tunnel

My home PC is behind NAT but my router has static ip address. My work PC uses 3G stick for Internet (So I guess it is like being behind NAT). I would like to create a reverse SSH-tunnel to connect to ...
3
votes
1answer
109 views

SSH connection through SSH tunnel keeps closing

I have a PI at home that creates an SSH tunnel to my VPS with autossh so I can access it from my VPS. When I log in to my PI from my VPS the connection keeps closing (which makes it unusable). For ...
20
votes
3answers
12k 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 $...
0
votes
0answers
23 views

Question about SSH tunneling

Consider this scenario. I have network manager on Server (S) and a network machine (N) both in a different network."N" can only be accessed via VPN..... .My laptop (L) is in the same subnetwork of ...
0
votes
0answers
28 views

Why the virtual interface is down when I establish a layer-3 SSH VPN using “tun” devices

I would like to establish a layer-3 SSH VPN on Ubuntu 14.04. To create a tun virtual device, I used the command ssh -f -w 0:0 root@41.33.17.26 -p 2010 true, it creates the interface 'tun0' but the ...
0
votes
0answers
38 views

Permanent proxy by sshuttle to Tunnel all the traffic

I need to set a proxy for my server. So I ran sshuttle on my server as follows:screen -dmS proxy sshuttle --dns -r alex@152.21.94.233:2020 0/0 When I log out the session, I can not login to the ...
0
votes
0answers
22 views

Reject ssh -L connection unless a corresponding ssh -R exists

Is there any way to make an SSH server reject a connection that attempts to use port forwarding unless it is directed to an existing reverse tunnel? To clarify, my intent is to only allow forwarding ...
3
votes
1answer
133 views

Tunneling multiple ports through a single port [duplicate]

I'd like to forward several ports from my local machine to a remote machine through SSH tunneling. However, I want this to happen across a single port. Is there a protocol or tool that can multiplex ...
2
votes
2answers
93 views

ssh reverse tunnel with remote ip

From a server 192.168.0.1, I'd like to reach a server 192.168.0.2 on port 80. 192.168.0.2 can reach 192.168.0.1, but 192.168.0.1 can't reach 192.168.0.2 (firewall). I have set up a reverse proxy, by ...
1
vote
1answer
53 views

SSH tunnels force new tunnel and kill old session

This is the situation: I have a Linux server running Ubuntu server 14.04 to which multiple computers connect and authenticate with SSH and try to open a reverse tunnel. These computers usually do not ...
1
vote
1answer
42 views

Is it possible to run a thin client in virtualbox?

I have a Mac laptop for work. I would like to keep my personal stuff off of my work computer. Obviously I can just ssh to my home computer and/or tunnel X using Quartz. But this always feels clunky, ...
0
votes
2answers
81 views

tunnelling ssh through ssh

I have a situation where I have a Windows 10 virtual machine running under VirtualBox on my linux desktop. This virtual machine (and at the moment only this virtual machine) can establish a VPN ...
0
votes
0answers
20 views

ssh tunnelling with and without PuTTy

I want to perform ssh tunnelling for which I have been using PuTTy. Config is as follows: Host IP: 172.XX.XX.111 Port: 22 Tunnel setting source port: 19005 Destination: 172.XX.XX.40:1521 After ...
2
votes
1answer
43 views

SHH Tunneling only accepted on some ports

I'm working with Server running Ubuntu Server 14.04. I use Plink to request some reverse tunnels from a remote computer to the server. For some ports that works just fine, but for most ports it seems ...
1
vote
0answers
62 views

Equivalent autossh command?

I am using the following command to setup an SSH tunnel to a remote server. I am using Ubuntu 15.10, and the remote server is running Ubuntu 14.04.3. ssh -N -f -L localhost:7154:localhost:7154 ...
3
votes
0answers
212 views

Why can't I execute an SSH command on a remote host?

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell: ssh remoteHost Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx remoteHost:user:...
6
votes
3answers
6k views

How can I set up a remote port forward on port 80 to my localhost with the help of setcap?

I'd like to accept connections briefly for development when I'm NATed, and so I'm attempting to do this: $ ssh ubuntu@example.org -R 80:localhost:80 Which fails as I'm trying to bind a port that is ...
1
vote
3answers
40 views

Understanding, and viewing, how ports are allocated by ssh tunnels?

I was trying to figure out a small problem with connecting to vnc through an SSH tunnel today where one of the possible issues was that someone else was already tunneled to the port. Without going ...