Setup SSH MasterSocker and other small improvements
This commit is contained in:
parent
fd56fcbdda
commit
5fcd8553f0
5 changed files with 18 additions and 15 deletions
|
@ -59,9 +59,9 @@ src = ".mbsyncrc"
|
||||||
dst = "~/.config/alacritty/alacritty.yml"
|
dst = "~/.config/alacritty/alacritty.yml"
|
||||||
src = ".config/alacritty/alacritty.yml"
|
src = ".config/alacritty/alacritty.yml"
|
||||||
|
|
||||||
[dotfiles.f_authorized_keys]
|
[dotfiles.d_ssh]
|
||||||
dst = "~/.ssh/authorized_keys"
|
dst = "~/.ssh"
|
||||||
src = ".ssh/authorized_keys"
|
src = ".ssh"
|
||||||
|
|
||||||
[dotfiles.f_beets_config]
|
[dotfiles.f_beets_config]
|
||||||
dst = "~/.config/beets/config.yaml"
|
dst = "~/.config/beets/config.yaml"
|
||||||
|
@ -242,9 +242,9 @@ os = "termux"
|
||||||
[profiles.terminal]
|
[profiles.terminal]
|
||||||
dotfiles = [
|
dotfiles = [
|
||||||
"d_nvim",
|
"d_nvim",
|
||||||
|
"d_ssh",
|
||||||
"d_zsh",
|
"d_zsh",
|
||||||
"f_alacritty.yml",
|
"f_alacritty.yml",
|
||||||
"f_authorized_keys",
|
|
||||||
"f_gitconfig",
|
"f_gitconfig",
|
||||||
"f_hushlogin",
|
"f_hushlogin",
|
||||||
"f_ignore",
|
"f_ignore",
|
||||||
|
@ -252,7 +252,6 @@ dotfiles = [
|
||||||
"f_ranger.conf",
|
"f_ranger.conf",
|
||||||
"f_ranger_commands.py",
|
"f_ranger_commands.py",
|
||||||
"f_rtv.cfg",
|
"f_rtv.cfg",
|
||||||
"f_ssh.conf",
|
|
||||||
"f_tmux.conf",
|
"f_tmux.conf",
|
||||||
"f_zshrc",
|
"f_zshrc",
|
||||||
]
|
]
|
||||||
|
|
|
@ -58,19 +58,16 @@ export MANPAGER="$EDITOR +\"lua require 'pager'\" +Man!"
|
||||||
export SYSTEMD_EDITOR=$EDITOR
|
export SYSTEMD_EDITOR=$EDITOR
|
||||||
export SYSTEMD_PAGER=less
|
export SYSTEMD_PAGER=less
|
||||||
|
|
||||||
# Use GPG for SSH authentication
|
|
||||||
export GPG_TTY="$(tty)"
|
|
||||||
|
|
||||||
{%@@ if os == "arch" @@%}
|
|
||||||
# set SSH_AUTH_SOCK if not logging in over SSH
|
|
||||||
if [ "$SSH_CONNECTION" = "" ]; then
|
if [ "$SSH_CONNECTION" = "" ]; then
|
||||||
|
{%@@ if os == "arch" or os == "ubuntu" @@%}
|
||||||
|
# set SSH_AUTH_SOCK if not logging in over SSH
|
||||||
|
export GPG_TTY="$(tty)"
|
||||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
#gpgconf --launch gpg-agent
|
gpgconf --launch gpg-agent
|
||||||
gpg-connect-agent updatestartuptty /bye >/dev/null
|
|
||||||
fi
|
|
||||||
{%@@ elif os == "termux" @@%}
|
{%@@ elif os == "termux" @@%}
|
||||||
eval $(okc-ssh-agent)
|
eval $(okc-ssh-agent)
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
|
fi
|
||||||
|
|
||||||
# Enable grc colorization of supported commands
|
# Enable grc colorization of supported commands
|
||||||
[[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh
|
[[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHLUrf0LpumX6XEkPW6Z105sgJMWWOllWy7sxB+lgdUw Marko YubiKey
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHLUrf0LpumX6XEkPW6Z105sgJMWWOllWy7sxB+lgdUw Marko YubiKey
|
||||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEvsd9UtWtqfG+vmx9ByEwQwKJlcelWwZlN4b4WG0al3 backup
|
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
Include ~/.ssh/rossum_hosts
|
Include ~/.ssh/rossum_hosts
|
||||||
|
|
||||||
|
host *
|
||||||
|
IdentitiesOnly yes
|
||||||
|
IdentityFile ~/.ssh/id_ed25519_yubikey.pub
|
||||||
|
ControlMaster auto
|
||||||
|
ControlPersist 10m
|
||||||
|
ControlPath ~/.ssh/%r@%h:%p.socket
|
||||||
|
|
||||||
host gitea
|
host gitea
|
||||||
HostName korhonen.cc
|
HostName korhonen.cc
|
||||||
user git
|
user git
|
||||||
|
|
1
home/.ssh/id_ed25519_yubikey.pub
Normal file
1
home/.ssh/id_ed25519_yubikey.pub
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHLUrf0LpumX6XEkPW6Z105sgJMWWOllWy7sxB+lgdUw Marko YubiKey
|
Loading…
Add table
Add a link
Reference in a new issue