mod
parent
d79ea8f0aa
commit
7c3fb9179e
29
README.md
29
README.md
|
@ -25,12 +25,39 @@
|
|||
```shell
|
||||
mkdir ~/.ssh
|
||||
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL/KY33g1maVDH80bsrfV1bHjkfiYXHu9Xtl3kJc7ofk artem@da2001.ru' >> ~/.ssh/authorized_keys
|
||||
chmod 700 ~/.ssh
|
||||
chmod 600 ~/.ssh/authorized_keys
|
||||
```
|
||||
|
||||
## Конфиг ssh клиента
|
||||
|
||||
```shell
|
||||
wget -O ~/.ssh/config https://git.da2001.ru/da2001/dots/src/branch/main/config
|
||||
tee /etc/systemd/system/tftp-server.service<<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 *.qwarta.ru
|
||||
ForwardAgent yes
|
||||
User adolgiy
|
||||
#User root
|
||||
IdentityFile /home/da2001/.ssh/sape_a.dolgiy
|
||||
|
||||
Host *.sapientru.net
|
||||
ForwardAgent yes
|
||||
User adolgiy
|
||||
#User root
|
||||
IdentityFile /home/da2001/.ssh/sape_a.dolgiy
|
||||
EOF
|
||||
```
|
||||
|
||||
или
|
||||
|
|
Loading…
Reference in New Issue