User Tools

Site Tools


remote_desktop_connection

This is an old revision of the document!


Remote Desktop Connection to Tiny

This is how to connect home when you need a graphical connection…

TinyRD.sh
#!/usr/bin/bash
# Above because it's how you should start all bash scripts
 
# Below; Start an ssh session, asking for the password to the rsa key (-i) before going 
# to the background (-f), and not executing (-N) anything on the remote end. Connect to
# 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.
ssh -f -N -i ~/.ssh/RSA-srj -p 22222 -L 33389:localhost:3389 steve@cyli.org 
 
# Sleep for a couple seconds.
sleep 2
 
# Start xfreerdp on the local machine, ignoring the bad certificate (/cert-ignore), and
# 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.
xfreerdp /cert-ignore /sound:sys:alsa /f /gdi:hw /u:steve /v:localhost:33389
 
# After we exit the desktop, kill the ssh-agent session,
killall ssh-agent
 
# and the ssh session.
killall ssh
remote_desktop_connection.1683139719.txt.gz · Last modified: by steve