Fill in your server details and get a proper ~/.ssh/config block.
<button onclick="navigator.clipboard.writeText(document.querySelector('#ssh-output pre').textContent);this.textContent='Copied!';setTimeout(()=>this.textContent='Copy',1500)" style="padding:0.4em 1em;background:#f3f4f6;border:1px solid #d1d5db;border-radius:4px;cursor:pointer;font-size:0.85em;">Copy</button>
</div>
<div style="margin-top:0.8em;font-size:0.85em;color:#666;">Paste into <code>~/.ssh/config</code> β then connect with: <code>ssh ${blocks.length ? blocks[0].split('\n')[0].replace('Host ', '') : 'myserver'}</code></div>`;
}
function genSSH() {
blocks = [genBlock()];
renderAll();
}
function addAnother() {
blocks.push(genBlock());
renderAll();
}
How SSH config works
Instead of typing ssh -i ~/.ssh/id_ed25519 -p 2222 deploy@192.168.1.100 every time, add a block to ~/.ssh/config and just type ssh myserver.
Tips
- Use
ed25519 keys over RSA β theyβre faster and more secure
- Set
ServerAliveInterval to prevent dropped connections
- Only enable
ForwardAgent for trusted servers