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

learn more… | top users | synonyms

3
votes
1answer
80 views

setting up SSH reverse tunnel [duplicate]

I have the following setup: I would like to be able to ssh or vnc from home computer to work computer. I think that I could setup some permanent ssh (reverse) tunnel to get this all going, but I am ...
2
votes
0answers
39 views

SSH - Unable to access local forward from another host

I have a VPS with 2 public IPs (assume 1.1.1.1 and 1.1.1.2) I am trying to do a local tunnel to my router on my VPS bound to the second IP, and then access it via another machine. I do the following ...
1
vote
1answer
62 views

ssh tunnel and oracle

On oracle server i can connect clear sqlplus user/pass@hostremote/SID If i make a tunnel ssh -L 1521:localhost:1521 -F -n hostremote -vvv give me debug1: Connection to port 1521 forwarding to ...
1
vote
1answer
35 views

Keeping an SSH tunnel up while my system is up - init.d service or something else?

I use an SSH tunnel on my host computer daily; but so far I've just been manually using some terminal just for that: Entering ssh -D 5001 user@some.where.com at the command line, and redoing it if ...
2
votes
1answer
396 views

ssh into a server which is connected to a VPN service

I have a virtual private server, which I would like to run a web server while my server is connected to a VPN service When the VPN connection to my provider is not up, I can do anything I want with ...
0
votes
1answer
44 views

Port forwarding error

I am trying to use VNC on my KVM guest, following this guide: http://blog.scottlowe.org/2013/08/21/accessing-vnc-consoles-of-kvm-guests-via-ssh/ This is the ssh command I am using from my host: ...
2
votes
2answers
7k 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: ...
1
vote
0answers
28 views

Having troubles connecting through tunnel to a server

Since yesterday I'm failing connection to my server partition on my school server. To access to my server I need to pass through a tunnel that require a password and connect me to the server. This ...
1
vote
1answer
72 views

Forwarding traffic coming from SSH tunnel to VPN tunnel on a Linux device

I want to route network traffic that comes from one end of an ssh tunnel (constructed by ssh dynamic port-forwarding) into one end of a VPN tunnel. Given four Linux devices A, B, C and D, for ...
1
vote
0answers
48 views

SSH reverse forward to a node “behind” the SSH server node

Scenario - SSH client, Windows laptop with Samba enabled (port 445. Don't care about netbios) SSH server "TestingLAB". This machine has 2 interfaces, "publicIP" which I use to connect from my ...
6
votes
1answer
4k views

Run X clients over multi-hop ssh tunnel

I've recently converted my home development machine to Linux, and would like to be able to log into it from work if needed. I use a mixture of Linux and Windows machines, and I already have various ...
1
vote
1answer
152 views

Which processes do the ports (as communication connection endpoints) belong to in SSH port forwarding?

(1) For remote forwarding: -R [bind_address:]port:host:hostport Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side. ...
0
votes
0answers
38 views

What kinds of IPC are used in ssh port forwarding?

SSH local forwarding is specified by: -L [bind_address:]port:host:hostport on the local host, a process called P1 attaches to port, so that P1 and the ssh client SC can communicate. What type of ...
0
votes
2answers
133 views

What does “bind_address” mean in SSH port forwarding?

In SSH local forwarding: -L [bind_address:]port:host:hostport Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side. ...
0
votes
0answers
14 views

Connect from firewalled server to git through connected client

The servers I am working on block port 22 on outgoing connections. But my local machine doesn't block port 22. I would like to reverse tunnel the server to my local machine, so that when I run git ...
0
votes
2answers
44 views

SSH Tunnel with key on first server

Im trying to tunnel to DestinationHost through HopHost with ssh -o ProxyCommand='ssh HopHostUser@HopHost nc -w 10 %h %p' DestinationHost First, I get to authenticate towards HopHost as HopHostUser ...
2
votes
1answer
245 views

How do I create a SSH user that can only access MySQL?

I want to set up an SSH tunnel to my MySQL database on a remote server. Can I create an SSH user that has only the minimum permissions that are strictly necessary to access MySQL, for example with a ...
0
votes
1answer
59 views

Correct ssh config file settings to tunnel to a 3rd machine

I'm trying to tunnel to and end server via a bridge server. So far, I've been able to get it working from the command shell properly using the following command: ssh -A -t ...
2
votes
0answers
174 views

named pipe proxy over SSH

I am used to forwarding a remote service port on localhost using ssh like: ssh -L 2181:localhost:2182 user@server (forward remote host port 2182 to local port 2181) now, from the machine I ssh to, I ...
0
votes
0answers
43 views

Connect to work pc via ssh

I have a PC on my work which I want to connect to from home (on both machines Ubuntu 14.04 is installed). I already opened a port in my work firewall. Now I found an instruction to create a pseudo ssh ...
2
votes
1answer
80 views

In bash, how can I use a here document but then open stdin?

My example is that I'm tunneling through a server and want to create a command to type in a password but leave stdin open once that's done. For example I need to sudo to a different user everytime I ...
1
vote
1answer
60 views

Reverse SSH dynamic port allotment error

When I run: ssh -i mycert -R 0:localhost:80 user@myserver.com and run the following on 'myserver.com': curl localhost:dynamicly_assigned_port I get 'ssh:Server send unrequested port, from port ...
4
votes
2answers
2k views

Give an access to Internet to a server reachable by SSH but where Internet is blocked

I can use my home computer A to connect by SSH to a server B where access to the external network is blocked. In other words, all requests to Internet from B throw an error: Network is unreachable. ...
2
votes
2answers
73 views

Openssh server: fatal: Too many listen sockets. Enlarge MAX_LISTEN_SOCKS [closed]

I am using Ubuntu 14.04 LTS. I want to create an openssh server, which listens on many ports (at least 100 different ports). Multiple clients would connect to this server, but each client would need ...
0
votes
1answer
68 views

Connecting two end-points through proxy server with SSH tunneling

I have a simple client and a HTTP server (port 80). In some cases, the client and server can exist on different locations, NAT'ed behind a firewall (allowing only outbound connections to port 80). ...
4
votes
1answer
495 views

forward all mysql traffic to a ssh tunnel

I have a local application that needs to connect to a remote mysql server at 40.40.40.40:3306 The main firewall blocks all connections but ssh, I can set up a ssh tunnel and connect to the server ...
2
votes
2answers
87 views

Using reverse SSH tunneling in one step instead of two steps (with -X)

Suppose we have three hosts: miki - my computer behind a NAT vps0 - my VPS mum - computer of my mother, behind a different NAT. The task is to connect from my computer to my mum and keep X11 ...
1
vote
1answer
105 views

SSH Tunneling - Local and Remote Use Cases

I just learned the basics of SSH tunneling from googling. I saw this interesting question: How does reverse SSH tunneling work? But I still find it a bit confusing, more specifically on the ...
1
vote
0answers
118 views

Reverse AutoSSH working, but the proxied LISTEN ports fail randomly

I'm having a hard time describing the error, sorry for the lengthy explanation: I have a successful, working, stable reverse AutoSSH solution nailed up between a client beagle board and a server. The ...
3
votes
3answers
67 views

How to start two processes piggie-backed? So the first finishes when the second finishes?

I'm running a script with ssh commands to a server behind a jump-host. Each time I want to run a command on my server in the secure network, I need to ssh into the jump-host (bastion) server and run ...
7
votes
3answers
3k views

Enabling system management privileges for non-local users - How the heck does `polkit` work, anyways?

I am managing a CentOS 6.2 server remotely using X over SSH (actually NX, but that's just a proxy). The Everything is working correctly, except when I try to do tasks that would normally require ...
4
votes
2answers
100 views

Can connecting to a SSH tunnel result in a vulnerability?

it's probably a noob question, but I haven't found a real answer yet. I bought a proxy service. In order to setup my browser I have to establish a SSH tunnel to their server. Since I do not want to ...
2
votes
1answer
122 views

If I use an SSH tunnel to forward a remote port to a local one, and my IP address changes, will that tunnel still work?

Simple - trying to use my personal computer as a server, by forwarding a public static IP address's port to mine, but I'm worried about Comcast pulling out the rug from underneath my feet and changing ...
2
votes
2answers
199 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 ...
0
votes
0answers
134 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
981 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 ...
1
vote
1answer
2k 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 ...
2
votes
1answer
383 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
766 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
79 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
348 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.
1
vote
1answer
79 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
133 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 ...
3
votes
3answers
19k 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
1k 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
56 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
386 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
1k 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 ...
4
votes
2answers
550 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 ...
0
votes
1answer
74 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 ...