mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-16 16:29:23 +01:00
parent
0b84baae26
commit
78c6507918
10
bashrc
10
bashrc
@ -755,6 +755,16 @@ fix-autostart() {
|
||||
chmod -R 755 ~/.config/autostart
|
||||
}
|
||||
|
||||
# This function removes and regenerates ssh host keys.
|
||||
|
||||
ssh-regen-host-keys () {
|
||||
rm /etc/ssh/ssh_host_*
|
||||
ssh-keygen -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key
|
||||
ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key
|
||||
ssh-keygen -t ecdsa -N "" -f /etc/ssh/ssh_host_ecdsa_key
|
||||
ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
|
||||
}
|
||||
|
||||
# .custom
|
||||
if [ -f ~/.custom ]; then
|
||||
source ~/.custom
|
||||
|
16
zshrc
16
zshrc
@ -728,19 +728,29 @@ fix-autostart() {
|
||||
chmod -R 755 ~/.config/autostart
|
||||
}
|
||||
|
||||
# This function removes and regenerates ssh host keys.
|
||||
|
||||
ssh-regen-host-keys () {
|
||||
rm /etc/ssh/ssh_host_*
|
||||
ssh-keygen -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key
|
||||
ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key
|
||||
ssh-keygen -t ecdsa -N "" -f /etc/ssh/ssh_host_ecdsa_key
|
||||
ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
|
||||
}
|
||||
|
||||
# Source files for miscannellious modifications.
|
||||
|
||||
# .custom
|
||||
if [ -f ~/.custom ]; then
|
||||
source ~/.custom
|
||||
fi
|
||||
fi
|
||||
|
||||
# .zsh_custom
|
||||
if [ -f ~/.zsh_custom ]; then
|
||||
source ~/.zsh_custom
|
||||
fi
|
||||
fi
|
||||
|
||||
# Warnings
|
||||
if [ -f ~/.warnings ]; then
|
||||
source ~/.warnings
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user