— Marc Verhaar 2021/12/19 13:46
Using the ssh server as a jumphost for a service in the ssh server network:
We can establish these connections like this:
ssh user@server -L 12345:192.168.1.200:81
This will open an SSH session and as long as it runs the tunnel is active!
You can now open a local browser to http://localhost:12345 and it will open 192.168.1.200:81 on the network where the SSH server is located.
sudo apt install proxychains -y
[ProxyList] # add proxy here ... # meanwile # defaults set to "tor" socks5 127.0.0.1 9050
Use socks5 which supports encrypted tunnels and UDP protocol!
ssh user@server -D 9050
This will open an SSH session and as long as it runs the tunnel is active!
proxychains rdesktop 192.168.1.x)Webbrowsers do support this but we need to configure the proxy configuration according to the tunnel:
We can use an SSH Jumphost to connect to an SSH server:
ssh user@server -J user@jumphost example: ssh root@192.168.1.70 -J marcv@verhaar.cc
Using multiple jumphosts:
ssh user@destination -J user@jumphost1 user@jumphost2
: using ssh config file for jumphosts…
We can create a configuration file for the ssh client which is used to define hosts, usernames, portnumbers, etc.
The file needs to be created in ~/.ssh/ thus the full path is ~/.ssh/config.
Host myserver # The name you want to use to connect Hostname 192.168.1.10 # The IP address the hostname needs to be translated to Port 22 # The port you want to use User marc # The username used to set up the connection