ssh: Fix issues with trying different keys
This commit is contained in:
parent
86ce0ed9e6
commit
98c27ce238
@ -23,23 +23,15 @@
|
|||||||
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
IdentitiesOnly yes
|
||||||
|
'';
|
||||||
|
includes = [
|
||||||
|
"config.d/*"
|
||||||
|
];
|
||||||
matchBlocks = let
|
matchBlocks = let
|
||||||
sshPort = 1847;
|
sshPort = 1847;
|
||||||
in {
|
in {
|
||||||
ayame = {
|
|
||||||
port = sshPort;
|
|
||||||
hostname = "78.46.184.48";
|
|
||||||
user = "alexander";
|
|
||||||
identityFile = "~/.ssh/polynom.me_ayame";
|
|
||||||
identitiesOnly = true;
|
|
||||||
};
|
|
||||||
taihou = {
|
|
||||||
port = 22;
|
|
||||||
hostname = "78.47.22.95";
|
|
||||||
user = "root";
|
|
||||||
identityFile = "~/.ssh/hetzner";
|
|
||||||
identitiesOnly = true;
|
|
||||||
};
|
|
||||||
"git.polynom.me" = {
|
"git.polynom.me" = {
|
||||||
port = 2222;
|
port = 2222;
|
||||||
user = "gitea";
|
user = "gitea";
|
||||||
|
Loading…
Reference in New Issue
Block a user