$USER_AT_HOST="your-user-name-on-host@hostname"
$PUBKEYPATH="$HOME.sshid_rsa.pub"
$pubKey=(Get-Content "$PUBKEYPATH" | Out-String); ssh "$USER_AT_HOST" "mkdir -p ~/.ssh && chmod 700 ~/.ssh && echo '${pubKey}' >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
Code Example |
---|
:: get ssh recovery code |
:: |
:: |
Shell :: |
Shell :: windows cmd "head -n " equivalent |
:: how to change language keyboard shortcut ubuntu |
Shell :: |
:: chekkout of branch without committing changes |
Shell :: |
:: |
Shell :: |
Shell :: git tagging for manging relesing dev.to |
:: |
:: |
Shell :: sed replace inline file |
Shell :: ubuntu kubernetes monitoring tools free |
:: sed write changes to file |
:: |
:: Failed to load module. If you have prettier or plugins referenced in package.json, ensure you have run `npm install` |
:: how to clone git all repository git ubuntu |
Shell :: how-to-remove-show-applications-icon-from-the-dock-in-ubuntu-20-04 |
Shell :: cat from line to line |
Shell :: gimp front color not enabled |
Shell :: Install Avalonia |
:: |
:: |
:: how to zip entire folder in sagemaker |
:: |
Shell :: |
Shell :: remove gpg error on your installed app or package |