IT-Wissen/ssh
2024-10-23 16:03:15 +02:00
..
README.md ssh update 2024-10-23 16:03:15 +02:00

Table of Contents

SSH

SSH als root mit fremden key

sudo ssh -i /home/user/.ssh/id_rsa" user@192.168.0.72

über Jumphost:

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