Hi colleagues,
This pertains to the recent conversation initiated by @crixus1 about "Redhat Learning Labs". It led me to question if anyone else prefers using SSH login from their local PC to the Lab, merely favoring CLI over the Web GUI rather than due to the corporate firewall restrictions or policies as mentioned by @crixus1. I personally utilize SSH remote port forwarding for this purpose since CLI is faster than GUI, and I am sharing the method below:
Prerequisites
Steps
As usual, start the Redhat Lab and log in to the workstation via Web GUI.
From the workstation, set up an SSH connection to your local PC with remote port forwarding:
student@localhost's password:
[student@workstation ~] $ hostname
Hi @tnishiok
Thank you, this is really handy. Having all that done I've updated my ssh config file as on the example below:
Host host1
Hostname 198.51.100.3
User user1
Host host2
Hostname localhost
Port 2222
DynamicForward 5555
User student
ProxyJump host1
Then from the second terminal we connect via ssh to host2, then configure Firefox to use a sock proxy (127.0.0.1:5555) so that we can access all web services/labs directly from our local browser.
Since this approache still requires the initial setup via Web GUI, it cannot address the use case of @crixus1. Neverthless it proves particulary beneficial for courses that require extensive amount of typing like the Ansible course, given that the response of SSH CLI is typically faster than Web GUI. It also makes copying and pasting from and into the Lab environment considerably easier.
Since this thread is not about question I don't expect answer. But it would be great if anybody can share your BKM.
Regards,
Toshi
Hi @tnishiok
Thank you, this is really handy. Having all that done I've updated my ssh config file as on the example below:
Host host1
Hostname 198.51.100.3
User user1
Host host2
Hostname localhost
Port 2222
DynamicForward 5555
User student
ProxyJump host1
Then from the second terminal we connect via ssh to host2, then configure Firefox to use a sock proxy (127.0.0.1:5555) so that we can access all web services/labs directly from our local browser.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.