Opening SSH and Telnet sessions and using WSL tools from PowerShell
A PowerShell session with administrative privileges
- Install the dependencies listed below
- Copy the contents of
UserProfileto%UserProfile% - Copy the contents of
WSLHometo~inside the WSL image - [OPTIONAL] Apply the included registry file to register Windows Terminal to automatically handle
ssh://andtelnet://protocol links
- PowerShell 5.1
- Windows Terminal
- OpenSSH Client
- CaskaydiaCove Nerd Font
- fastfetch
- plink (for
wttelnetandwtcom)
- WSL
- Rocky Linux WSL Image
bgpq4,fastfetch,iperf3,mtr:
sudo dnf config-manager --set-enabled crb
sudo dnf install epel-release iperf3 mtr
sudo dnf install bgpq4 fastfetch
- Aliases:
grep-->Select-Stringll-->Get-ChildItemsubl|sublime--> Sublime Textwhich-->Get-Command
- WSL Aliases:
bgpq4digiperf3mtrwhois- Note: All WSL aliases use a distribution named
rockyby default. That distribution must exist and have the above tools installed for these to function.
wtssh: Wrapper for OpenSSH that spawns a new tab-t,--title: Set a custom title for the tab- Parses an SSH URI argument (
ssh://) - All additional arguments are forwarded to OpenSSH
wttelnet|wttel: Wrapper forplink -telnetthat spawns a new tab--title: Set a custom title for the tab- Parses a telnet URI argument (
telnet://) - All additional arguments are forwarded to plink
wtcom|wtser: Wrapper forplink -serialthat spawns a new tab-Port: The COM device number, default:4-BaudRate: The baud rate, default:9600-DataBits: The number of bits per character, default:8-Parity: The parity mechanism behaviour, one of:n: None (default)o: Odde: Evenm: Marks: Space
-StopBits: The number of stop bits, one of1,1.5, or2, default:1-FlowControl: Flow control mechanism, one of:N: No flow controlX: Software XON/XOFF flow control (default)R: Hardware RTS/CTS flow controlD: Hardware DSR/DTR flow control
Compare-FileHash: Compare two files, or a file to a hash string-Algorithm: Hash algorithm to use, default:SHA256-Path: Path to the first (or only) file to compare, may also be piped in via stdin-Compare: Path to the second file, or a hash string, to compare against
- Other Utilities:
head,tail,wc: Basic clones of standard POSIX toolsGet-UserPrincipleName: Get the UPN of the current user

