This commit is contained in:
root
2024-01-27 07:49:05 +12:00
commit d45048e439
17 changed files with 435 additions and 0 deletions

17
docs/progs/ssh.md Normal file
View File

@@ -0,0 +1,17 @@
# SSH
## Generate public key from private
```
ssh-keygen -f id_rsa -y > id_rsa.pub
```
## Port forwarding
```bash
# forward : 172.16.0.1:80 -> 172.16.0.2 -> 127.0.0.1:4080
ssh -f -N -L 4080:172.16.0.1:80 172.16.0.2
```
## Allow old algorithm
```bash
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss 172.16.0.1
```