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

learn more… | top users | synonyms

6
votes
2answers
9k views

What do the channel numbers in ssh error message refer to?

In the example below what do the channel numbers correspond to? Which are on the server? Which are on the client? $ ssh -L1570:127.0.0.1:8899 root@thehost Password: Last login: Fri Aug 9 ...
0
votes
1answer
206 views

SSH reverse tunnel works except when I use a VirtualBox instance at one end. Why does VB break SSH?

VirtualBox seems to break my SSH ProxyCommand... here are the details: I want to open an SSH connection from my laptop to desktop over an SSH (reverse) tunnel. I want to do that in one step using ...
1
vote
1answer
808 views

Multiple SSH tunnels (local and remote forwarding) over one master OpenSSH connection? Good idea?

The question Using an already established SSH channel has an answer that intrigued me. It suggests that I can reuse an existing SSH connection. However, after further reading, I see that this solution ...
2
votes
1answer
281 views

Establishing client VNC connection over SSH in one step (e.g., with the -via option)

How do I reduce these two commands to one? I am connecting from my client to an x11vnc server and the two commands below already work. I just wish to do it in one step: first command: ssh -fNL ...
1
vote
2answers
238 views

Unable to force passphraseless ssh authentication while port forwarding

I'm completely at a loss as to what is preventing my local machine from authenticating the connection that is being forwarded from the remote server. I've read a ton of the posts on here regarding ...
3
votes
1answer
1k views

How to parameterize the LocalForward option in ssh_config?

I'm starting with this fully working ssh command: $ ssh -fNL 3306:localhost:3306 coolio@database.example.com This config gets me part of the simplification I am after: Host tunnel HostName ...
1
vote
1answer
647 views

SFTP over reverse SSH tunnel?

I want to SFTP to a remote computer that is behind NAT. I can't modify the NAT router, so I have set up a reverse SSH tunnel using a middleman server. Here's what my SSH tunnel looks like: ...
11
votes
1answer
3k views

Remote desktop over SSH reverse tunnel to replace TeamViewer

I want to open a remote desktop session from my laptop to desktop over my SSH (reverse) tunnel. That should be simple (or at least doable), right? Until now I've been using Team Viewer to log in to ...
1
vote
1answer
263 views

How to restrict an SSH tunnel to a certain outbound IP address on an SSH server?

I hope I'm phrasing this question correctly. I have a SSH server that I use for testing that has 2 internet connections running on it. The LAN connection is always on, but the USB connection is on ...
1
vote
1answer
460 views

Remote support: routing RDP over ssh tunnel?

I want to replace TeamViewer with a FOSS solution. I need to support some remote computers. I have a working SSH tunnel set up between two computers using a middleman server like this: ...
4
votes
2answers
710 views

SSH tunnel through middleman server - how to connect in one step (using key pair)?

My question is basically how to turn my existing two steps into one step. I have a working SSH tunnel set up between two computers using a middleman server like this: ...
0
votes
1answer
2k views

Remote desktop (KDE) over SSH reverse tunnel

I have a reverse ssh tunnel through a middleman server set up and working. I'm running Kubuntu 12.04 here and on the remote machine. I want to open a remote desktop session. Until now I've been ...
1
vote
0answers
217 views

Disable SSH Tunnel with KVM VNC Server

Here at work we've set up a KVM server that hosts a couple guest machines. The KVM itself is headless and we remote into whenever needed, but we would like to be able to VNC into the guests. I have ...
2
votes
1answer
252 views

What are the key differences between “SSH tunnels” and “Squid reverse IPs” in regards to web page scraping and private browsing?

What are the key differences between "SSH tunnels" and "Squid reverse IPs" in regards to web page scraping and private browsing? Interested to know if there are any differences between using "SSH ...
8
votes
1answer
2k views

Forward all ports SSH

I have a question about SSH/Port forwarding. I haven't found the solution anywhere and don't know if there is any. I have a server behind my NAT box at home. I have port forwarding from my NAT box to ...
4
votes
1answer
1k views

My reverse-ssh tunnel is using keepalives but they're not helping

I have an ssh client machine picard behind multiple unreliable internet connections - all with NAT. I have my server time, reliable with a static IP. I want to be able to access picard thorugh time. ...
4
votes
1answer
999 views

Why wget does not work via ssh tunnel? What does proxy prevent ssh-client to do?

To test things I'm trying to establish a local ssh tunnel from my laptop to a site via ssh-server, and download a page of the site (or view it in a browser). The tunnel is made like this: $ ssh -L ...
6
votes
1answer
3k views

SSH over Socks proxy without username or password

I have a list of SOCKS proxy servers from this site. I've read about creating a dynamic tunnels with ssh -D and to be honest i've tried that already. Unfortunately for some reason I cannot connect to ...
0
votes
0answers
147 views

Xdebug not working over a reverse shell

I've opened a reverse shell to my remote server to tunnel port 9000 to my local machine like this ssh -R 9000:localhost:9000 you@remote-php-web-server.com but but it doesn't work. The reverse shell ...
2
votes
1answer
514 views

Double SSH tunnelling for SMB shared folder

I am actually working from PC1 (using Mac OSX) on a distant computer(Linux) PC2 using SSH. This distant computer PC2 does not have any connection to Internet but is in a network with a PC3 (Windows ...
3
votes
2answers
231 views

Grant ssh access for single session

I wonder if there is a tool/modified ssh-server/ssh option which enables me to grant ssh access for a single session to a given user. What I want to avoid is creating a user account and password for ...
3
votes
1answer
2k views

SSH via Corkscrew to a remote server not working

I am trying to SSH to a remote server from my college network (proxy). However, I am getting this error whenever I try to SSH to the host ssh_exchange_identification: Connection closed by remote host ...
5
votes
4answers
2k views

SSH tunnel hanging

I'm trying to use an SSH tunnel from home to a computer in the university so I can access some articles. Both machines are running Ubuntu 11.04, the university machine runs openssh-server. I my ...
3
votes
1answer
352 views

Tunnel AFP over SSH over Internet

I can't seem to figure out how to connect to AFP over SSH. Here is my setup: [Raspberry Pi] <---> [router] <---> (Internet) <---> [Client] I'd like to be able to connect to my ...
2
votes
1answer
549 views

Is there anyway to run gnome desktop via a remote x window ssh tunnel?

I'd like to run the DE remotely in a window of it's own on my local workstation. When I tried the naive gnome-session from an x-window tunnel it tried to takeover my local xfce desktop, got as far as ...
6
votes
3answers
3k 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
176 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
1k 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
615 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
3k 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
954 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
407 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
674 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
684 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
541 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 ...
3
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
331 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
232 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
285 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
288 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
363 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
1k 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
393 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
339 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
1k 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
141 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 ...