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

learn more… | top users | synonyms

6
votes
3answers
2k views

Are there disadvantages in SSH tunneling?

I recently "bought" a VPS that I want to use as a Proxy to be able to use some sites and stuff that I can't reach from germany. Since I was yet too lazy to set up Squid and OpenVPN (which I ...
0
votes
1answer
158 views

Using ssh_alias with ssh tunneling

I am using ssh tunneling to login to system behind gateway. Problem is that I have ssh_alias defined in ~/.ssh/config on gateway server. Where I have key and ip setup. But those alias don't work ...
2
votes
3answers
993 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
2answers
511 views

Bypass sshd AllowTCPFowarding=no by installing own forwarder?

In the man pages for sshd_config, for the AllowTCPForwarding option, it states: AllowTcpForwarding Specifies whether TCP forwarding is permitted. The default is “yes”. Note that disabling ...
5
votes
3answers
2k views

How to access a machine behind a restricted NAT gateway I don't manage?

I have a linux machine that I'd like to be able to access remotely for SSH, FTP, HTTP, and so forth. I signed up for Dynamic DNS with No-IP.com, but this isn't adequate because I am on a college ...
2
votes
2answers
831 views

Setup ssh tunnelling to browse using the IP of a computer inside a private network

I think my question is much easier to understand looking at the draw below. The idea is that for some reasons (such like accessing the intranet of my company, or getting access to some web pages that ...
3
votes
1answer
381 views

How to set up SSH on Ubuntu desktop and bind sub-domain to it for remote access outside network?

I am pretty to new to SSH and I have a question regarding access to my machine outside network. I have a Linux machine sitting in my apartment running almost all the time and connect to the network ...
1
vote
2answers
583 views

SSH tunnel to MySQL for PHP scripts

I need to establish an SSH tunnel so that my local PHP script can connect to a MySQL server on a remote server. Remote machine: MySQL (127.0.0.1:3306) on Linux (SSH port 44422) Local machine: Linux ...
6
votes
2answers
2k 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 ...
2
votes
2answers
2k views

autossh in /etc/inittab

I have setup ssh tunnel to be able to connect a target computer behind NAT. I have put the following into /etc/inittab on the computer: tu:2345:respawn:/usr/bin/autossh -M 20000 -f -n -N -T -R ...
4
votes
3answers
657 views

tunneling VNC/rdesktop over ssh

I'm having a friend behind a firewall, with a windows computer. I'm having a Linux machine at home which is not behind a firewall. I want to have an rdesktop connection to his machine, without using ...
2
votes
1answer
466 views

create a tunnel to a local server

Using a VPN, I am connected through SSH on a distant Ubuntu Computer. From this computer, I can browse using telnet through a local server (192.168.x.x). Is there any way, from the terminal or ...
2
votes
2answers
3k views

SSH jumping over socks(4/5) proxy chain. Host -> socks proxy -> socks proxy -> destination

I got a great answer for my previous question about connecting from Machine A to Machine C via Socks proxy located on Machine B. Say Machine B Ip is 218.62.97.105 and it is listening on port 1080 ...
1
vote
0answers
303 views

Reverse tunnelling with “stunnel” in linux

Scenario: Central Log-Server(logserv)- only private IP interfaces Multiple client servers (logclient)- has public IPs. Requirement: Need to tcp logs of syslog application from various logclients ...
0
votes
1answer
223 views

How to run svn when ssh over ssh?

I need to run sudo -u wwwrun sh -c 'svn status -uq /srv/www/htdocs/loquat' over ssh. When using one ssh it works smoothly. Now there is one server that needs to be connected through another server via ...
2
votes
1answer
262 views

ngircd refuses connection over ssh tunnel

This might be just a misunderstanding of how ssh tunneling works, but here goes: In my ngirgd.conf file I have the following: Ports = 6669 Listen = 127.0.0.1 This ngircd server is running on ...
2
votes
1answer
251 views

Tunneling SSH through multiple machines (for SOCKS)

I have seen questions on tunnelling SSH through multiple machines but I want to tunnel a SOCKS connection. Normally I would use something like ssh -C2qTnN -D 8080 username@remote_machine to make the ...
2
votes
2answers
2k views

How to login from remote server to my own PC?

For the experiment purpose I need to login to my own PC from the remote PCs which are under the same domain, i.e: university network. How can I do remote login in this case using SSH? As an example, ...
5
votes
2answers
330 views

Is there a xterm equivalent that is optimized for use over VNC?

tl;dr Is there a terminal emulator that uses rectangular copies for scrolling? I'm doing a lot over work over the internet just now (hacking a program on my employer's cluster that can't be ...
2
votes
1answer
2k views

system wide SOCKS5 Proxy

I connect to my Server on the internet using ssh -D 3128 user@rootserver.com. If I am right I thereby open a SOCKS v5 Proxy to my Server. Using firefox and FoxyProxy I can now add this to my proxys ...
4
votes
2answers
891 views

How to use rsync with a remote remote host

I am a happy user of rsync -e ssh and use it to synchronize data between my machine and a remote host using rsync -avz -e ssh me@hostA:~/folder ~/folder And this did what I needed until now. I am ...
3
votes
2answers
373 views

Trying to create tunnel to mysql through SSH

Im in a bit of a bind here. I have a client that want's me to set up his website, but he runs the server w/ SSH and CentOS 6.2 as it's OS. Now, I'm trying to add the sql server on Mysql Workbench for ...
2
votes
1answer
312 views

How to recover from a corrupt xdebug session?

Sometimes my local computer crashes when I'm in the middle of a xdebug session. When I reconnect to my remote server with a reverse shell I get this warning: Warning: remote port forwarding failed ...
1
vote
1answer
984 views

how to specify the forwarding port when using multiple tsocks services?

According to the answer of this question, I have my /etc/tsocks.conf containing these lines: path { server = localhost server_port = 1081 reaches = <ip-address-of-server-b>/32 } path { server = ...
1
vote
1answer
140 views

Are the SSH manual pages wrong?

The ssh manual pages states the following: -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 ...
4
votes
1answer
2k views

How to print from remote over SSH to local LAN printer?

OK, so it is fairly straight forward to to run apps from a remote server on my local X screen as though they were local apps. The question is, when trying to print, the remote app only sees printers ...
0
votes
0answers
213 views

Problem in using SSH tunnel

In a network, due to a reason that I don't know, I can't browse the web in Linux(In windows it has no problem). I get Error 301 moved permanently when I try to load a web page. I decided to bypass ...
2
votes
1answer
414 views

How to setup port redirection after a ssh connection has been opened?

I'm using openssh on both client and server. I know I can run ssh -L or ssh -R to setup some port redirections over ssh. However, since they are command-line parameters, such redirections must be ...
16
votes
2answers
6k 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 ...
5
votes
1answer
333 views

SSH HTTP Tunnelling

I am trying to set up an SSH account on my server for someone, and I only want to give them access to tunneling internet traffic. I set their user's "shell" to /bin/true, so now when they SSH (and ...
2
votes
1answer
1k views

How to make SSH tunnel as daemon?

Actually, I need a secured VPN, but configuring it was too hard for me. So I decided to use SSH tunnel. The tunnel could be established when I logged in. :( (1) How can I make a SSH tunnel without ...
2
votes
1answer
645 views

List ports tunnelled on OpenSSH server

Is there any way to list the tunnels that SSH clients connected to my OpenSSH server have set up? I can use e.g. lsof -i to show connections that are being actively tunnelled, but I'd like to be able ...
3
votes
1answer
1k views

Can sshd restrict client tunnel endpoints to localhost?

Normally an ssh client can request TCP forwarding using the -L command line option. The server can disable this completely using AllowTcpForwarding no. If enabled, the client can request to connect ...
7
votes
1answer
418 views

self-recovering ssh tunnel over non-100% connection

I want to setup permanent ssh-tunnel for port forwarding to machine behind firewall. The connection is between university network (very reliable) and commercial microwave metropolitan connection to a ...
7
votes
2answers
4k 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 ...
4
votes
1answer
1k views

ssh tunneling a local display to another server

I have a GUI test stand simulation connected to some hardware that is under test. The test stand is a Sun Sparc Ultra 2 SunOs 5.7. The simulation software checks to see if your running your display on ...
3
votes
1answer
832 views

Set up password-less SSH tunneling from home computer behind NAT to inside computer behind gateway

My home computer is behind an ISP-level NAT (and firewall). The target computer is work computer behind gateway. You have to log to gateway computer first via SSH (as it is the only one visible and ...
1
vote
1answer
1k views

How to monitor traffic when SSH tunneling?

If I run: ssh -fND localhost:6000 USERNAME@IPADDRESS -p PORTNUMBER and I set my webbrowser to use 127.0.0.1:6000 SOCKS5 proxy, is there a way for the remote SSH server to monitor my web traffic? ...
3
votes
1answer
2k views

Multiple SSH chaining (tsocks, socksify, proxycommand, etc. )

http://i.stack.imgur.com/YTOvt.png Goal: you need to reach "Server B" from the Client "directly" with SSH, SCP. "Server B" is next to "Server A". E.g.: they're on the same subnet, but only "Server ...
5
votes
1answer
384 views

SSH tunnel with VNC?

In theory: I have a low-power consuption machine: eee pc, ok. I need to run a virtualized windows xp on it. (Because of a windows-only program..) I need to reach it from a smartphone (Android). The ...
3
votes
6answers
1k views

Common multiple SSH connections file handling issue

often I have to download a file that isn't directly accessable via the first SSH connection. For example I'm on a Windows machine and I want to access another machine that is only accessable from lan. ...
5
votes
2answers
722 views

How can I forward traffic from my publicly available server to a computer that is not publicly available?

My home computer is behind an ISP-level NAT which does not allow me to host game servers as a result. I have a VPS which I use as a web server. I want to host a game server of Minecraft, but the VPS ...
3
votes
1answer
427 views

X Window opened from screen

Bit of an oddish one, if I've opened an X window over SSH in a screen session will it reopen when screen is reattached? I've been able to detach and the process stays running fine, with the X window ...
1
vote
1answer
1k views

vnc connection working with PuTTY but not with command line

I am using PuTTY to connect to a distant network to then set up x11vnc and then using ssl/sshvnc as a client. in the host name for PuTTY I have: ssh.inf.uk and port: 22 in the ssh tunnel options I ...