0
votes
1answer
24 views

SSH forwarding by username [duplicate]

I want to make available a pool of dev machines to a pool of developers, where each developer should only access its own dev machine. Dev machines are on a private network, behind a NAT, whereas ...
1
vote
1answer
42 views

How to tell if an ssh session is using x forwarding (if it was run with -X or -Y)

For a given ssh session, is there a way to tell if it has x-forwarding enabled? I.e. you don't know if the session was established with ssh username@address or with ssh -X username@address.
-1
votes
1answer
118 views

Forwarding incoming ssh connections to virtual machine based on LDAP group

My Question is as follows: How can I forward all incoming SSH (Port 22) traffic (except one account) to a VM which is running on this server? The Server is based on Proxmox VE 3.1 The VM is Debian 7 ...
-1
votes
2answers
220 views

Forwarding the endpoint (at localhost) of an SSH -L tunnel to another machine

Even after long searching and trying I'm not able to solve the following puzzle: Client A --------------------------> Server B (172.26.15.15/24) ssh -L 4321:localhost:4321 Server C ...
1
vote
2answers
181 views

SSH Key Forwarding fails as soon as I am root

Situation I add a ssh-key to the chain using ssh-add -K the_path as user@local I set up key forwarding as described here https://help.github.com/articles/using-ssh-agent-forwarding ...
0
votes
1answer
403 views

Reverse proxy for SSH/HTTPS on same port (443) [closed]

I have an unusual problem. My home server environment has only one static IP. It has a web server that I would like to serve HTTP and HTTPS. However, most of the external networks I connect to it from ...
1
vote
1answer
1k views

how to solve the error: “ssh_exchange_identification: connection closed by remote host”

I have been researching for hours and still unable to solve my problem. This error "ssh_exchange_identification: Connection closed by remote host" has many proposed solutions but none seem to solve ...
3
votes
1answer
468 views

How to SSH gate forwarding git user to gitserver?

Im trying to set up ssh/git access through a ssh gate but googleing has come up empty. Basically I want any connection to my ssh gate from the user git to be forwarded to my ssh server so that pushes ...
8
votes
2answers
8k views

Why is ssh agent forwarding not working?

In my own computer, running MacOSX, I have this in ~/.ssh/config Host * ForwardAgent yes Host b1 ForwardAgent yes b1 is a virtual machine running Ubuntu 12.04. I ssh to it like this: ssh pupeno@b1 ...
4
votes
1answer
3k views

Selecting Interface for SSH Port Forwarding

I have a server that we'll call hub-server.tld with three IP addresses 100.200.130.121, 100.200.130.122, and 100.200.130.123. I have three different machines that are behind a firewall, but I want to ...
1
vote
1answer
945 views

Why would ssh-agent forwarding not work for particular users?

I'm having a ridiculous amount of difficulty getting SSH agent forwarding to work effectively for two users. Both can login to a remote servers without a problem, and it looks like their agents are ...
3
votes
4answers
685 views

How forward one port to other using ssh or any other tool?

I have a legacy application listening on port 5050 bound to localhost interface (i.e. 127.0.0.1). This app runs on a Linux box (an embedded system). I have an app, lets call it App C that runs on PC ...
0
votes
2answers
106 views

Tunnel SSH “Client -> Firewall -> Server1 -> Server1.2”

I need to make a tunnel from a client box to a server. The problem is that there are 2 boxes between them: CLIENT --- FIREWALL ---{ SERVER1 --- SERVER1.2 } CLIENT ============================= ...
4
votes
1answer
4k views

How to allow remote connections from non localhost clients with ssh remote port forwarding?

I have a system say "privatesys". I am trying to give access to its web server through a remote proxy using ssh remote port forwarding like below. Private sys name: privatesys Port exposed: 80 The ...
2
votes
1answer
5k views

How to enable key forwarding with ssh-agent?

I've used the ssh-agent from oh-my-zsh to manage my SSH key. So far, so good, i only have to type the passphrase for my private key once when I start my shell and public key authentication works ...
3
votes
3answers
238 views

Is there a way to forward my .ssh/config file to an ssh connection?

There is a way to forward my private keys to the server im connected with the ssh -A option. Is there is a way to forward the .ssh/config file as well? Its where I keep host aliases and default ...
2
votes
3answers
3k views

What part of SSH forwarding sets up SSH_AUTH_SOCK?

I'm trying to get SSH agent forwarding working from my Mac to a Debian server. On my Mac, I have verified that I have: SSH_AUTH_SOCK exists ssh-add -l shows my identities ./ssh/config has settings ...
0
votes
2answers
956 views

Loading GUI on host machine through SSH with X11 forwarding

I've got applications on my host machine running fine by doing: $ssh -X user@host Welcome to host $firefox Firefox proceeds to run in client display from the host machine. How do I get firefox to ...
5
votes
2answers
1k views

How can I activate ssh-agent confirmation in MacOSX Leopard?

I have a MacBook with MacOSX Leopard (10.6.2) and I use it to connect to some servers (their O.S. is Debian Lenny) using SSH. I use RSA keys to login to server A, and from there I "bounce" to other ...
58
votes
8answers
22k views

ssh-agent forwarding and sudo to another user

If I have a server A into which I can login with my ssh key and I have the ability to "sudo su - otheruser", I lose key forwarding, because the env variables are removed and the socket is only ...
2
votes
4answers
2k views

iptables rules to block ssh remote forwarded ports

I'm trying to setup an iptables rule that will block access to ssh remote forwarded connections via ssh local remote forwarded connections. So, IOW: Client A connects to server: ssh -R ...
3
votes
2answers
2k views

iptables question: forwarding port x to an ssh port of different machine on the network

I have a Ubuntu PC, with two networks cards, acting as a router. One card eth0 is connected to internet and other eth1 is connected to LAN. I want to expose ssh ports of different hosts in LAN to ...
8
votes
2answers
13k views

How to setup ssh tunnel to forward ssh?

I have computer with Ubuntu behind router that I can't configure. However I want to have ssh access to that computer. I think it is possible with ssh tunneling, but I don't know how to do it. I have ...