I'm using SSH tunnel and remmina client to connect to the remote machine.
First I open the tunnel in my terminal:
ssh -L 3309:<server_address>:3389 user@<aws_bastion>
And then I just connect via remmina to localhost:3309 port with user name and password for that server. It works just fine.
I wonder if I could setup this SSH tunnel bit in remmina directly
I've tried to specify the following
And then connect to my <aws_bastion> server and it doesn't work. I wonder how do I translate that tunnel command in GUI client?
It works in my case and I think the strange configurations are:
SSH Agent
based authentication.localhost
even though I put the server's IP in SSH Tunnel.Hope this helps.
Update with the configuration that worked for me:
Basic tab.
This depends on the vnc server setup in the remote.
SSH Tunnel:
VNC_SERVER_IP_ADDRESS:22
(22 is the port for SSH)You don't need to open ssh tunnel yourself (anymore?). Remmina, at least the current version 1.4.2, does it for you.
Here is my configuration which just works:
While I don't think Remmina supports setting up the initial SSH tunnel, you could always just run a script for it. Something along the lines of:
!/bin/bash ssh -L 3309:<server_address>:3389 user@<aws_bastion> remmina -c (connectionname)
You'll need to make a connection file specific to your connection, of course, but afterward this script should initiate the tunnel and connect to the specified machine in one swoop.
https://superuser.com/questions/628371/how-to-run-linux-remmina-from-the-terminal
This link details how to create such a configuration file.
Scenario:
localhost => jumpbox => RDP-host
If you want to connect via a Jumpbox to an isolated RDP Server, (which accepts only RDP connections coming from the Jumpbox) I had success with the following Remmina configuration.
Step 1: In a gnome-terminal, enter
ssh my.jumpbox.com -L 1111:my.rdp.server:3389
(This assumes that you have an entry in your ~/.ssh/config file. To make the connection more explicitly, enter
ssh -l jumpboxloginname -i ~/.ssh/private-key-to-jumpbox my.jumpbox.com -L 1111:my.rdp.server:3389
, or,If you have password-based login enabled, use
ssh -l jumpboxuser my.jumpbox.com -L 1111:my.rdp.server:3389
)This opens an interactive terminal to the jumpbox and also opens a local SSH tunnel to the jumpbox. This
ssh
command instructs the Jumpbox to forward any traffic coming in from your localhost port 1111 (running Remmina) to the RDP host.Step 2: Use Remmina to connect to the RDP host via Jumpbox: Open the Connection Profile in the Remmina Gui. In Remmina, in the "Basic" Tab, enter
localhost:1111
(and the credentials of the Windows User). In the "SSH Tunnel" tab, do not enter anything.Note that everything is greyed out here in the tab below. Entries are from earlier experiments.
Optional. (If you ran tmux or byobu) Hit F6 to detach (not disconnect) from the jumpbox. If you have Remmina still open, the terminal window appears to hang. Type
CTRL-z
. Typebg
. to get your terminal back. The tunnel, however, stays open. - If you had closed Remmina before, both the terminal connection and the SSH tunnel will be closed. And you will get back your terminal immediately.