From 2e1979ca24c13bb04c8ecd5fe09e01678f40e53e Mon Sep 17 00:00:00 2001 From: A Farzat Date: Sun, 10 Nov 2024 08:38:38 +0900 Subject: Update ssh config --- .config/ssh/arch.config | 2 +- .config/ssh/farzat_xyz.config | 13 ++++++++++--- .local/share/ssh_pub_keys/arch1.pub | 3 +++ .local/share/ssh_pub_keys/main1.pub | 3 --- .local/share/ssh_pub_keys/ubuntu1.pub | 3 +++ 5 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 .local/share/ssh_pub_keys/arch1.pub delete mode 100644 .local/share/ssh_pub_keys/main1.pub create mode 100644 .local/share/ssh_pub_keys/ubuntu1.pub diff --git a/.config/ssh/arch.config b/.config/ssh/arch.config index c81908f..deacc82 100644 --- a/.config/ssh/arch.config +++ b/.config/ssh/arch.config @@ -4,4 +4,4 @@ Host aur.archlinux.org HostName aur.archlinux.org User aur IdentitiesOnly yes - IdentityFile ~/.local/share/ssh_pub_keys/aur.pub + IdentityFile ${XDG_DATA_HOME}/ssh_pub_keys/aur.pub diff --git a/.config/ssh/farzat_xyz.config b/.config/ssh/farzat_xyz.config index 4234c73..db1f5e3 100644 --- a/.config/ssh/farzat_xyz.config +++ b/.config/ssh/farzat_xyz.config @@ -1,8 +1,15 @@ # vim: set filetype=sshconfig : -Host main1 - HostName farzat.xyz +Host ubuntu1 + HostName ubuntu1.farzat.xyz User farzat ForwardAgent yes IdentitiesOnly yes - IdentityFile ~/.local/share/ssh_pub_keys/main1.pub + IdentityFile ${XDG_DATA_HOME}/ssh_pub_keys/ubuntu1.pub + +Host arch1 + HostName arch1.farzat.xyz + User farzat + ForwardAgent yes + IdentitiesOnly yes + IdentityFile ${XDG_DATA_HOME}/ssh_pub_keys/arch1.pub diff --git a/.local/share/ssh_pub_keys/arch1.pub b/.local/share/ssh_pub_keys/arch1.pub new file mode 100644 index 0000000..5bb5fb1 --- /dev/null +++ b/.local/share/ssh_pub_keys/arch1.pub @@ -0,0 +1,3 @@ +U2FsdGVkX18BB48cw2YwVJuVRzw+fD73PaCjV4D0YntcSuk3Isvq5e3J9kBJq98L +u+rYqV+lHCHV9cPj7zwXz1mgReGExKUAWDaYOuSVQ4tACBKrpbwBbjOdR4mGghfZ +7LcjCyfaTjXgFUTlpdNi8w== diff --git a/.local/share/ssh_pub_keys/main1.pub b/.local/share/ssh_pub_keys/main1.pub deleted file mode 100644 index c1e1f59..0000000 --- a/.local/share/ssh_pub_keys/main1.pub +++ /dev/null @@ -1,3 +0,0 @@ -U2FsdGVkX1+uA2Z3bIzgymzCXDhtoCqalwBEKNUIijLiyn8SSbMKckccCnXhxnrl -oNGis8UaPWefpp3XSafyIulfPqbOUeWq/STn8ULIlnmfHKpJ0kPXbf0cL+2rplSU -ogYOwRChwCEnIofwgkdDMyoi7Iiywxj0uzIwhF6XNLA= diff --git a/.local/share/ssh_pub_keys/ubuntu1.pub b/.local/share/ssh_pub_keys/ubuntu1.pub new file mode 100644 index 0000000..db423ee --- /dev/null +++ b/.local/share/ssh_pub_keys/ubuntu1.pub @@ -0,0 +1,3 @@ +U2FsdGVkX1/JWZ8a/txjccppYTjVKrU4Fdq3azeiAcrwJmRLlINCfQNMfVk3sP/Y +VaXNnEyhJZe4/qNGBPYtsrunUN/gjC0NuPqp0XQMigOoWUweGlDT6KKw5YYpAM3E +rADxbwxLyV0LNrdvmkIV5Q== -- cgit v1.2.3-70-g09d2