Initial
This commit is contained in:
17
docs/progs/ssh.md
Normal file
17
docs/progs/ssh.md
Normal 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
|
||||
```
|
Reference in New Issue
Block a user