dotfiles/alias.sh
xenon.inx 26a6c08eae
Add FIDO2-HID-Bridge in alias.sh
As I use pc/sc fido key as my fido device.
2025-03-24 10:26:42 +08:00

31 lines
1.4 KiB
Bash

#!/bin/sh
# Some personally preferred alias
# 1. pwdssh
# pwdssh is a quick way to use ssh with no public key authentications would be
# tried. I use this alias to connect to machines I didn't configure the public
# key login. Due to the sshd only allows 5 tries of login, my 1Password vault
# just can't try them all until the exact one was chosen ( I haven't configure
# the SSH Bookmarks, which would resolve this problem). So I choose this alias
# as my prefixed ssh to login with only password.
alias pwdssh='ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no '
# 2. dolphon
# I use archlinux on my computer. And just as the tutorial did, I use KDE Pla-
# sma as my desktop environment. But use dophin(GUI file explorer) as root is
# kinda difficult. Only use "sudo dolphin" will prompt you that you should use
# "dolphin --sudo" directly, but when you run the last one you need to install
# kio-admin. So after seeking some of websites, I found this way to run dol-
# phin with root permission(and without install kio-admin).
alias dolphon='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin'
# 3. FIDO2-HID-Bridge
# I use old-school smartcard as my fido2 device (its more easy to bring).
# So I need this to use PC/SC device on my laptop browser to use fido things.
# Reminder: yay -S fido2-hid-bridge
alias hidfido='sudo -E fido2-hid-bridge'