remote_desktop_connection
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| remote_desktop_connection [2023/05/03 18:48] – steve | remote_desktop_connection [2023/05/27 16:02] (current) – steve | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| # | # | ||
| # Above because it's how you should start all bash scripts | # Above because it's how you should start all bash scripts | ||
| + | |||
| + | # The line below reads credentials into the Creds array, useful | ||
| + | # data is in the odd references, the keys are in the evens. | ||
| + | Creds=($(grep -A 2 " | ||
| # Below; Start an ssh session, asking for the password to the rsa key (-i) before going | # Below; Start an ssh session, asking for the password to the rsa key (-i) before going | ||
| Line 9: | Line 13: | ||
| # port 22222 (-p) as steve at the server cyli.org, creating a tunnel (-L) from port 33389 | # port 22222 (-p) as steve at the server cyli.org, creating a tunnel (-L) from port 33389 | ||
| # on the local machine, to port 3389 on the remote machine. | # on the local machine, to port 3389 on the remote machine. | ||
| - | ssh -f -N -i ~/.ssh/RSA-srj -p 22222 -L 33389: | + | ssh -f -N -i ~/.ssh/SRJ-rsa -p 22222 -L 33389: |
| + | # ssh -f -N -i ~/ | ||
| # Sleep for a couple seconds. | # Sleep for a couple seconds. | ||
| Line 17: | Line 22: | ||
| # forwarding sound (/ | # forwarding sound (/ | ||
| # rendering (/gdi:hw), connecting as steve, to localhost at port 33389, created above. | # rendering (/gdi:hw), connecting as steve, to localhost at port 33389, created above. | ||
| - | xfreerdp / | + | xfreerdp / |
| # After we exit the desktop, kill the ssh-agent session, | # After we exit the desktop, kill the ssh-agent session, | ||
remote_desktop_connection.1683139719.txt.gz · Last modified: by steve
