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