Last active
September 27, 2022 11:58
-
-
Save patmigliaccio/74952265f9ef94bbebeaf24026b5d52f to your computer and use it in GitHub Desktop.
bash script to rdp into azure vm / windows server with freerdp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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