ssh update

This commit is contained in:
Roger Rutishauser 2024-10-23 16:03:15 +02:00
parent b732f53005
commit e2cdb78837

View File

@ -14,4 +14,13 @@ sudo ssh -i /home/user/.ssh/id_rsa" user@192.168.0.72
``` ```
ssh -o ProxyCommand="ssh -W %h:%p -q ubuntu@jumphost-xxx.cloud" ubuntu@10.5.2.44 ssh -o ProxyCommand="ssh -W %h:%p -q ubuntu@jumphost-xxx.cloud" ubuntu@10.5.2.44
``` ```
## Generate public key from private key
In case you only have the private key, you can generate the public key like this:
```
ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub
```