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 клиента
```shell
tee /etc/systemd/system/tftp-server.service<<EOF
tee ~/.ssh/config<<EOF
Host 10.1.*
User da2001
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel QUIET
Host bastion_local
Hostname 192.168.13.10
User da2001
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel QUIET
Host docker
Hostname 192.168.13.7
User da2001
Host *.qwarta.ru
ForwardAgent yes
User adolgiy
#User root
IdentityFile /home/da2001/.ssh/sape_a.dolgiy
IdentitiesOnly yes
AddKeysToAgent yes
Host *.sapientru.net
ForwardAgent yes
User adolgiy
#User root
IdentityFile /home/da2001/.ssh/sape_a.dolgiy
IdentitiesOnly yes
AddKeysToAgent yes
EOF
```

10
config
View File

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