init: Alfred preferences

This commit is contained in:
2026-03-26 09:22:38 +08:00
commit 3cad72b72c
13215 changed files with 108280 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "PermitRootLogin yes",
"uid" : "A7FA83A7-FD68-490C-86F6-F8018F19BBC4",
"name" : "PermitRootLogin yes",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-keygen -o -f ~\/.ssh\/id_rsa",
"uid" : "7B9797A2-0F6B-461B-839D-DFA324648A3E",
"name" : "generate_rsa_key_with_existing_path",
"keyword" : ""
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>snippetkeywordprefix</key>
<string></string>
<key>snippetkeywordsuffix</key>
<string>ssh</string>
</dict>
</plist>

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh -J <bastion1>,<bastion2> <remote>",
"uid" : "E8607FF4-E032-4153-AB35-BDFB4BC1312E",
"name" : "ssh -J <bastion1>,<bastion2> <remote>",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "export USER_AT_HOST=\"your-user-name-on-host@hostname\"\nexport PUBKEYPATH=\"$HOME\/.ssh\/id_rsa.pub\"\n\nssh-copy-id -i \"$PUBKEYPATH\" \"$USER_AT_HOST\"",
"uid" : "F5C52528-4F02-49BF-8D77-60A2DD3453B0",
"name" : "ssh-copy-id",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "Host name-of-ssh-host-here\n User your-user-name-on-host\n HostName host-fqdn-or-ip-goes-here\n IdentityFile ~\/.ssh\/id_rsa-remote-ssh",
"uid" : "FBA77B4D-D550-4679-9D12-B42712B102C6",
"name" : "ssh_config",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "Host *\n ControlMaster auto\n ControlPath ~\/.ssh\/sockets\/%r@%h-%p\n ControlPersist 600",
"uid" : "8B3DF3AB-9C29-4602-821A-DFDC2126799D",
"name" : "ssh_control_params",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh -N -L 8888:127.0.0.1:80 -i KEYFILE {cursor}",
"uid" : "C38FF0B2-9A31-4CF8-BE89-8E904E300C94",
"name" : "ssh_forwarding_command_using_keyfile",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-add -l",
"uid" : "EFF4588A-4EEF-41E7-BC78-19CFBDF6C6BE",
"name" : "列出 SSH 金鑰",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "eval \"$(ssh-agent -s)\"",
"uid" : "622C3D77-13DC-46E8-94E1-1C6C855B9AEE",
"name" : "啟動 ssh-agent 並載入環境變數",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "mkdir -p ~\/.ssh\/sockets",
"uid" : "5FD6DCFA-4885-4D89-ACCF-39FB9CC2DA9D",
"name" : "建立 SSH socket 目錄",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-keygen -t rsa -b 2048 -C \"<comment>\"",
"uid" : "807839AE-0824-478A-9573-1E8A67E5DA37",
"name" : "為 SSH 生成 2048 位元的 RSA 金鑰,並在註解中填入 \"<comment>\"。",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-keygen -t rsa -b 4096",
"uid" : "504F59DD-D4E3-4F01-BF6C-41196848366B",
"name" : "生成 4096 位 RSA 金鑰",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-keygen -t ecdsa-sk -C \"<comment>\"",
"uid" : "724B4656-DE7D-44DE-A0D3-52F13933ACEC",
"name" : "生成 ECDSA-SK 金鑰",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-keygen -t ed25519 -C \"<comment>\"",
"uid" : "FFE5A06B-B3A4-4F60-8B17-81784B08B477",
"name" : "生成 ED25519 金鑰",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-keygen -t ed25519-sk -C \"<comment>\"",
"uid" : "A44708CC-74A4-44F6-AF10-70AB8EB6C83C",
"name" : "生成 ED25519-SK 金鑰",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-keygen -t ed25519-sk -O resident -C \"<comment>\"",
"uid" : "333864F8-D700-4050-A7E3-637685236D87",
"name" : "生成持久 ED25519-SK 金鑰",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-keygen -t rsa -b 4096 -f ~\/.ssh\/id_rsa-remote-ssh",
"uid" : "7494ECE8-3511-4355-8A29-DD121D4131DA",
"name" : "產生 4096 位元 RSA SSH 金鑰",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-keygen -o -t rsa -b 4096 -C \"<comment>\"",
"uid" : "C1573148-300B-47FB-BEDC-4781C84BAC84",
"name" : "產生帶註解的 RSA SSH 金鑰",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-keygen -R {cursor} ",
"uid" : "8B016D67-7B7B-40D8-84AB-F81A8C964BE9",
"name" : "移除 SSH 主機金鑰",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh-copy-id -i ~\/.ssh\/id_ecdsa.pub \\\n -o IdentitiesOnly=yes \\\n -o IdentityFile=~\/.ssh\/id_ecdsa \\\n {cursor}\n",
"uid" : "F71075D7-DC4B-42B8-9507-2EC00398600A",
"name" : "複製 SSH 金鑰到遠端伺服器",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "chmod 700 ~\/.ssh\nchmod 600 ~\/.ssh\/config\nchmod 600 ~\/.ssh\/id_rsa.pub",
"uid" : "5444C00E-3DBF-420F-8DDB-7F0EC77FAE93",
"name" : "設定 SSH 檔案權限",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh -o ProxyCommand=\"ssh -W %h:%p bastion-host\" remote-host",
"uid" : "8E283F5C-A6C4-4739-ADF6-F4B558517469",
"name" : "透過跳板機連線到遠端主機",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "sudo systemctl restart ssh",
"uid" : "B4DD485C-E2A6-4379-8A7E-A5D0C515A234",
"name" : "重新啟動 SSH 服務",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "ssh -O exit {cursor}",
"uid" : "CC2F55EF-57BC-4459-8823-971698BD0C1B",
"name" : "關閉 SSH 連線控制通道",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "sudo sshd -T",
"uid" : "2EB7B2CF-B91E-4CCC-BEA6-E58183944294",
"name" : "顯示 SSHD 實際生效的設定",
"keyword" : ""
}
}