mod .ssh/config
parent
7c3fb9179e
commit
3456943fda
12
README.md
12
README.md
|
|
@ -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
10
config
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue