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

learn more… | top users | synonyms

1
vote
1answer
20 views

duplicity with ssh tunneling

I'm relatively new to posting here, so please pardon infelicities. I'm trying to set up a duplicity backup through a 2-step ssh tunnel that I set up in config with one alias - call that alias "...
0
votes
0answers
11 views

How do I use autossh to set up a no-frills socks proxy?

I use ssh -D 12345 [email protected] to set up dynamic port forwarding via host somewhere.com. I want to switch to using autossh to daemonize the thing and to make sure I don't need to manually ...
1
vote
0answers
13 views

How do I setup a connection to a database over a SSH-Tunnel with kerberos in a gui?

I need to connect to a Mysql database on a server that is only accessible over ssh with a Kerberos ticket. In a console this is easy, I only do: kinit (then enter password) ssh username@server (...
0
votes
0answers
38 views

SSH Into server behind VPN [duplicate]

I have 2 servers, server A and server B, server A is my own server. Server B is a VPS that I am using as a VPN. Server A runs a SSH service on port 222. Server B also runs a ssh service on port 22. ...
0
votes
0answers
5 views

RMate Reconnect

I'm using rmate and sublime text to remotely edit files. One problem I have is if my ssh connection get's interrupted or closed, I have to reopen all my remote files by issuing new rmate commands. ...
0
votes
1answer
58 views

How to SSH tunnel from Windows into Linux into MySQL

I'm using Windows on my local computer with Putty to SSH for local access to a staging database. I need to connect to MySQL using a Python/MySQL connector on Windows which goes through the Linux/Putty ...
3
votes
1answer
40 views

SSH Shell via SSH Proxy

Yes, I'm aware that I wrote "SSH shell" in the title. TL;DR: The first paragraph, the one with the link, and the one with the error message are most important. I have my Raspberry Pi at home which I ...
1
vote
1answer
21 views

How to restrict SSH to allow remote tunnelling only (no local)?

I have setup a second instance of the sshd service, that I want to use to allow remote tunnelling on. I followed How to restrict an SSH user to only allow SSH-tunneling? - that showed me how to ...
0
votes
0answers
24 views

ssh port forwarding fails: channel n: open failed: administratively prohibited: open failed

There are other similar questions to this, but there is new behavior in the CentOS kernel 3.10.0-514.2.2.el7.x86_64, or in the other files that were released at the same time: I saw more than 600 ...
1
vote
1answer
12 views

sshuttle connection timing out

I have a local server that only allows connections within the internal network. I have another server inside the internal network that can connect to outside the network. I want to use the second ...
1
vote
1answer
51 views

Directive 'StrictModes' is not allowed within a Match block [duplicate]

I am building a network of Raspberry Pi ADS-B receivers. Several nodes placed at different locations: home, lodge, parents, maybe more to come... They are all set up to phone home to an Amazon-EC2 ...
1
vote
1answer
298 views

ssh_dispatch_run_fatal: message authentication code incorrect

Since a few days I'm facing an issue while being connected to my server in ssh, for proxy/tunel usage. I - Setup Client Here is the machine : iMac:~ Luca$ sw_vers ProductName: Mac OS X ...
2
votes
1answer
44 views

SSH Tunnel in background

I have a process that expects an ssh tunnel connection to execute correctly and I have been using the following command: ssh -L localhost:3306:127.0.0.1:3306 username@<mysql-machine-ip-address> ...
0
votes
1answer
233 views

ssh_exchange_identification: Connection closed by remote

I want to be able to ssh into work-pc that is behind a restrictive firewall from home-pc. Work-pc openssh version OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016 I use this command on ...
0
votes
0answers
11 views

X11 forwarding not working after sudo [duplicate]

I’m successfully using x11 forwarding using a windows client with putty and Xming on my linux server. The problem is that this does not work anymore when I’m using any application through sudo. Let ...
0
votes
3answers
127 views

Transferring 70TB data from one remote server to another

First I will elaborate what is the scenario here. We have 2 servers both are ubuntu 14.04 LTS and we have a drive called /storage/ of 70TB It includes many files of 30GB size each and other ones as ...
0
votes
2answers
75 views

Serve Internet to remote machine via SSH? [closed]

This question is asked from few times but my setup is little different from other setup. I have my machine sitting in closed network with no internet and I have sudo access to that machine. But I ...
0
votes
1answer
69 views

Only allow SSH incoming and outgoing

I am trying to only allow SSH incoming and outgoings on my firewall, but the problem is that FTP can also be used even though I DROP at the end of the script # Incoming SSH $iptables -A INPUT -p tcp -...
1
vote
5answers
187 views

making an automate reverse SSH connection at boot

I have a PC behind a NAT which makes a reverse SSH connection to my Digitalocean VPC. I utilise this reversed SSH connection from home to login to my office PC (I am authorised to do so) and copy ...
1
vote
1answer
115 views

not able to ping through ssh tunnel device

I am trying to create an ssh VPN (through port 443) to bypass NAT and filtering. I am using this tutorial. The OS is Debian testing on bolth sides. The tunnel devices are created on bolth sides, and ...
0
votes
1answer
22 views

SSH through public lan with same hostname

So I got my machine say it's IP is 10.0.0.123 and my Cisco lan switch is 10.0.0.1 my public IP is 10.103.6.1. and my other network is the same but it's public IP is 10.104.6.1. So the question is ...
1
vote
2answers
115 views

ssh proxy command not working

I have this proxy command Host JUMPHOST User root ProxyCommand ssh -q 172.16.99.11 nc -q0 10.0.0.2 22 When I run it, however I'm not able to login into 10.0.0.2 federico@federico:~ $ ssh JUMPHOST ...
1
vote
1answer
192 views

How to chain ssh commands over multiple hops?

Is it possible to chain multiple ssh connections together with each connection specified as an ssh host? I know it's possible to use the -W flag or nc to do a second hop to another hostname or ip ...
0
votes
1answer
55 views

VNC (display :0) through SSH with Arch

I want to share the display :0 of my Computer runngin Arch with my Android phone. What I have tried: I connected to the computer via ssh and forwarded the VNC port. I used x0vncserver of the tigervnc ...
0
votes
2answers
135 views

Ssh tunneling fron behind nat firewalls

I have a openssh-server. On Ubuntu 14.04x behind a firewall (I have no admin rights to) I want to create a ssh tunnel from my Kali Linux rolling that is using a tether from mobile device that is ...
2
votes
1answer
65 views

ssh does not return when executing remote process in bg

I'm trying to open a tunnel on a remote server from local machine by executing a command remotely via ssh. I'm using sshpass too. sshpass -fpw_file.txt ssh [email protected] 'bash /home/username/do_stuff....
1
vote
1answer
109 views

Routing packets from one interface to another

Summary Of The Problem Here is a routing table on a linux computer: root@computer:~# ip route show default via 192.168.1.1 dev eth0 10.0.0.200 dev tun0 proto kernel scope link src 10.0.0.100 ...
2
votes
2answers
305 views

SSH tunnel via MySQL Workbench

my new production server is only visible via ssh double tunnel. I can reach targetHost over Ubuntu's 14.04 console simply executing command ssh targetHost and than executing mysql cli on remote ...
1
vote
0answers
87 views

SSH tunnel, port forwarding setup

I have a simple bash script for SSH tunneling createTunnel() { /usr/bin/ssh -i /home/miner/EC2.pem -f -N -R 10022:localhost:22 -L 19922:[email protected]:22 [email protected] if [[ $? -eq 0 ]]; ...
0
votes
1answer
67 views

Access remote services as if local using single SSH connection [duplicate]

Is it possible to create a single SSH tunnel to address a remote host like it was sitting on the local system, eg. type the following pseudo-examples locally and achieve the desired effect: Copy ...
3
votes
2answers
44 views

Forward X11 through two SSH tunnels

For work, I have to ssh from my local machine through Machine A to get to Machine B. The problem is that Machine A doesn't have X11 forwarding, and I don't have superuser privileges to change that. I ...
1
vote
1answer
92 views

Multihop with sshpass

I want to use .ssh/config to connect to a host through a gateway. I don't want to set up an RSA key and have to use password. I have previously done this kind of hopping without password. Now trying ...
0
votes
1answer
68 views

How can I verify if browsing using SOCKS5 proxy (via SSH -D) is TCP over TCP?

The link talks about TCP over TCP when http is used over SOCKS via SSH. I am trying to browse from Firefox (on Ubuntu 14.04) after setting up the SOCKS5 proxy option via localhost. I created a ...
0
votes
0answers
24 views

How to allow remote connections impersonate localhost from the very same host?

I am working in debug mode over a virtual machine with a service that filters by source origin address, so that only localhost can access. Is there any useful command that allow me to impersonate any ...
2
votes
1answer
209 views

SSH with a bastion host and different usernames

I want to log into a linux server using two sequential bastion hosts. My .ssh/config file looks something like this: Host * User username0 Host hostname0 Hostname foo Host hostname1 Hostname ...
2
votes
2answers
45 views

lockout local logins on reverse-ssh appliance

I have set up a reverse-ssh appliance with a Raspberry-Pi for use at a customer site to connect to a piece of equipment I have to support via a USB-to-RS232 adapter. I've cleared this with the ...
0
votes
1answer
23 views

Find all port forwards from all users

I am running a CentOS 7 machine that only allows ssh access. On that machine I'm running a number of QEMU virtual machines, each with its display on a different VNC port. To access a machine I'm ...
1
vote
2answers
105 views

Reverse ssh tunnel in with .ssh/config

How can I establish a reverse ssh tunnel with my ./ssh/config file? I'm trying to reproduce this command ssh [email protected] -L 4444:restricedserver1.org:4420 -L 4445:restricedserver2:4430
1
vote
0answers
37 views

Set X2Go up to allow remote windows on the local desktop?

If I run ssh -X server lxterminal I get a new terminal window open on my local desktop that I can then launch new applications on the server from (similarly to the old xrsh application, except using a ...
2
votes
1answer
158 views

Reverse SSH Tunnel

I have a gitlab server on my local network and a server that I can ssh to from outside my network. Is there a way I can configure the server, that I can SSH into, so that when I use: ssh git@git....
2
votes
0answers
39 views

Opening a TUN device from QEmu x86 for ARMv7 fails

On Banana PI-R1 (ARMv7), with qemu-i386-static, I'm trying to execute Barracuda VPN client statically linked for x86. Following this topic works : Running X86 binaries on armv7 But, when the VPN tries ...
3
votes
1answer
47 views

`ssh -X` request a specific X display?

When connecting to a host via ssh -X, is it possible to request a specific display? When logging in and running echo $DISPLAY, it can be different each time I login. On the host I have a number of ...
2
votes
0answers
40 views

Encrypting Linux LPD to Windows (ipsec/ssh tunnel/other)

I have a Windows print server running LPD. My Linux clients are all configured to point to a separate Linux server running Cups (TCP 631), and then the Cups config points to an LPD URI which directs ...
1
vote
0answers
255 views

Using ssh -t works but using ProxyCommand ssh -W does not

I am trying to set up a ssh connection through a jump host. It should go like this A -> B -> C. I can connect fine from A to B and from B to C but I would like to have a single connection from A to C ...
0
votes
0answers
62 views

autossh public/private key not working

I'm trying to set up autossh and have gotten it to the level where I can establish the remote tunnel connection but I'm having trouble setting up the key pair so I don't get asked for the password ...
4
votes
5answers
930 views

Does ssh send the password over the network?

Basically the entire question is in the headline: Does ssh send the password over the network? Presuming of course that login via username and password is used. I'm asking because if ssh doesn't send ...
1
vote
0answers
43 views

Access office URL through browser outside office

I work as a web developer in a office. I have a linux machine as a work machine. I develop code then test it on a browser. I can only access the URL that I use to test my pages inside my office. I ...
0
votes
1answer
254 views

Problems with SSH ProxyCommand [closed]

i have some problems with the ssh proxycommand. The authentication on the proxy works fine, but when i want to login to the remote-host it fails. The problem seems to be, that the proxy tries to login ...
1
vote
1answer
90 views

Using shell code for LocalForward in ssh config file

I have this configuration in my ssh config file, Host *+* ProxyCommand ssh $(echo %h | sed -e 's/+[^+]*$//;s/\([^+=]*\)=\([^+]*\)$/\2 -l \1/; s/^\([^+:]*\):\([0-9]*\)+/-p \2 \1+/') -W $(echo %h | ...
7
votes
1answer
69 views

Current SSH connection properties (cipher, auth type, timeout, etc)

After a connection is established with SSH, how we can get the current connection properties ? Is there a way to know what cipher(s) is being used ? Properties of the authentication ? Protocol ...