An SSH tunnel provides an encrypted channel based on the SSH protocol.
18
votes
9answers
19k 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: ...
14
votes
2answers
4k views
How does reverse SSH tunneling work?
As I understand this, firewalls (assuming default settings) deny all incoming traffic that has no prior corresponding outgoing traffic.
Based on Reversing an ssh connection and SSH Tunneling Made ...
11
votes
2answers
3k 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 ...
10
votes
1answer
368 views
Understanding SSH tunnels
I have linux (Ubuntu) server which I have root access to through ssh (port 22) only. On that server there is a MySQL database listening on port 3306. Is it possible to use putty (on my machine) and ...
7
votes
1answer
281 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
3answers
3k views
Can I pipe /dev/video over ssh
I have two computers, a desktop in my office ( with a webcam attached ) and a laptop somewhere else on the network.
Usually I take a look at my office through my webcam by running
ssh Office -Y ...
6
votes
2answers
2k 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 ...
6
votes
3answers
988 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 ...
6
votes
2answers
940 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 ...
5
votes
1answer
2k 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 ...
5
votes
2answers
370 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 ...
5
votes
1answer
59 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 ...
5
votes
2answers
191 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 ...
5
votes
1answer
1k 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 ...
4
votes
2answers
269 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 ...
4
votes
1answer
218 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 ...
4
votes
1answer
318 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 ...
4
votes
2answers
380 views
How do I configure ssh tunneling past a firewall?
I have a NAS running Linux behind a firewall at home. I want to access it remotely using a few services such as a Transmission GUI (port 9091) and webmin (port 10000), but through an SSH tunnel on ...
4
votes
3answers
533 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 ...
4
votes
4answers
632 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 ...
4
votes
1answer
785 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 ...
3
votes
6answers
892 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. ...
3
votes
1answer
775 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
2answers
73 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
245 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 ...
3
votes
1answer
260 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 ...
3
votes
1answer
368 views
How to create a SSH tunnel over 2 servers?
I have 2 servers, A and B. I want to create a tunnel from my system to server B but I have some limits to do this. So I have to first tunnel to server A and from server A to server B. My goal is to ...
3
votes
1answer
197 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 ...
3
votes
1answer
491 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 ...
3
votes
3answers
480 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
2answers
549 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 ...
2
votes
2answers
1k 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
...
2
votes
1answer
243 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
1answer
157 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
1answer
196 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 ...
2
votes
1answer
628 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 ...
2
votes
2answers
346 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 ...
2
votes
1answer
168 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
2answers
694 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, ...
2
votes
1answer
595 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 ...
2
votes
1answer
159 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
119 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 ...
2
votes
2answers
271 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
2k 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 ...
2
votes
1answer
104 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
...
2
votes
1answer
239 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 ...
2
votes
0answers
180 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
3answers
174 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
1answer
135 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 ...