mod .ssh/config

main
Artem Dolgiy 2025-10-23 08:53:03 +03:00
parent 7c3fb9179e
commit 3456943fda
2 changed files with 17 additions and 5 deletions

View File

@ -32,31 +32,37 @@ chmod 600 ~/.ssh/authorized_keys
## Конфиг ssh клиента ## Конфиг ssh клиента
```shell ```shell
tee /etc/systemd/system/tftp-server.service<<EOF tee ~/.ssh/config<<EOF
Host 10.1.* Host 10.1.*
User da2001 User da2001
StrictHostKeyChecking no StrictHostKeyChecking no
UserKnownHostsFile /dev/null UserKnownHostsFile /dev/null
LogLevel QUIET
Host bastion_local Host bastion_local
Hostname 192.168.13.10 Hostname 192.168.13.10
User da2001 User da2001
StrictHostKeyChecking no StrictHostKeyChecking no
UserKnownHostsFile /dev/null UserKnownHostsFile /dev/null
LogLevel QUIET
Host docker
Hostname 192.168.13.7
User da2001
Host *.qwarta.ru Host *.qwarta.ru
ForwardAgent yes ForwardAgent yes
User adolgiy User adolgiy
#User root #User root
IdentityFile /home/da2001/.ssh/sape_a.dolgiy IdentityFile /home/da2001/.ssh/sape_a.dolgiy
IdentitiesOnly yes
AddKeysToAgent yes
Host *.sapientru.net Host *.sapientru.net
ForwardAgent yes ForwardAgent yes
User adolgiy User adolgiy
#User root #User root
IdentityFile /home/da2001/.ssh/sape_a.dolgiy IdentityFile /home/da2001/.ssh/sape_a.dolgiy
IdentitiesOnly yes
AddKeysToAgent yes
EOF EOF
``` ```

10
config
View File

@ -2,23 +2,29 @@ Host 10.1.*
User da2001 User da2001
StrictHostKeyChecking no StrictHostKeyChecking no
UserKnownHostsFile /dev/null UserKnownHostsFile /dev/null
LogLevel QUIET
Host bastion_local Host bastion_local
Hostname 192.168.13.10 Hostname 192.168.13.10
User da2001 User da2001
StrictHostKeyChecking no StrictHostKeyChecking no
UserKnownHostsFile /dev/null UserKnownHostsFile /dev/null
LogLevel QUIET
Host docker
Hostname 192.168.13.7
User da2001
Host *.qwarta.ru Host *.qwarta.ru
ForwardAgent yes ForwardAgent yes
User adolgiy User adolgiy
#User root #User root
IdentityFile /home/da2001/.ssh/sape_a.dolgiy IdentityFile /home/da2001/.ssh/sape_a.dolgiy
IdentitiesOnly yes
AddKeysToAgent yes
Host *.sapientru.net Host *.sapientru.net
ForwardAgent yes ForwardAgent yes
User adolgiy User adolgiy
#User root #User root
IdentityFile /home/da2001/.ssh/sape_a.dolgiy IdentityFile /home/da2001/.ssh/sape_a.dolgiy
IdentitiesOnly yes
AddKeysToAgent yes