User Tools

Site Tools


remote_desktop_connection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
remote_desktop_connection [2023/05/03 21:03] steveremote_desktop_connection [2023/05/27 16:02] (current) steve
Line 4: Line 4:
 #!/usr/bin/bash #!/usr/bin/bash
 # 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 "machine tiny" ~/.netrc))
  
 # 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 10: Line 14:
 # 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/SRJ-rsa -p 22222 -L 33389:localhost:3389 steve@cyli.org  ssh -f -N -i ~/.ssh/SRJ-rsa -p 22222 -L 33389:localhost:3389 steve@cyli.org 
 +# ssh -f -N -i ~/.ssh/SRJ-rsa -p 22 -L 33389:localhost:3389 steve@192.168.1.189 
  
 # Sleep for a couple seconds. # Sleep for a couple seconds.
Line 17: Line 22:
 # forwarding sound (/sound:sys:alsa), running full-screen (/f), using hardware GDI  # forwarding sound (/sound:sys:alsa), running full-screen (/f), using hardware GDI 
 # 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 /cert-ignore /sound:sys:alsa /f /gdi:hw /u:steve /v:localhost:33389+xfreerdp /cert-ignore /sound /microphone /f /u:${Creds[3]} /p:"${Creds[5]}" /v:localhost:33389
  
 # After we exit the desktop, kill the ssh-agent session, # After we exit the desktop, kill the ssh-agent session,
remote_desktop_connection.1683147806.txt.gz · Last modified: by steve