diff --git a/ssh/README.md b/ssh/README.md index 501a11d..d6c4a63 100644 --- a/ssh/README.md +++ b/ssh/README.md @@ -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 -``` \ No newline at end of file +``` + +## 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 +``` +