Skip to content

Instantly share code, notes, and snippets.

@patmigliaccio
Last active September 27, 2022 11:58
Show Gist options
  • Save patmigliaccio/74952265f9ef94bbebeaf24026b5d52f to your computer and use it in GitHub Desktop.
Save patmigliaccio/74952265f9ef94bbebeaf24026b5d52f to your computer and use it in GitHub Desktop.
bash script to rdp into azure vm / windows server with freerdp
#!/bin/sh
# RDP into Azure VM / Windows machine using `xfreerdp`
#
# Reference: https://github.com/FreeRDP/FreeRDP/issues/2128#issuecomment-213505787
#
# Required dependency: http://www.freerdp.com/
#
# Preferred over `rdesktop` due to: https://github.com/rdesktop/rdesktop/issues/71
SERVER=SERVER_NAME
PORT=3389
USER=USER_NAME
DOMAIN=DOMAIN_NAME
xfreerdp +clipboard \
/sec:nla \
/u:$USER \
/size:1440x900 \
/d:$DOMAIN \
/v:$SERVER \
/port:$PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment