mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-17 01:04:24 +00:00
chore: imported knowledge from https://betterprogramming.pub/6-more-terminal-commands-you-should-know-3606cecdf8b6
This commit is contained in:
@@ -55,6 +55,9 @@ ssh-add -L
|
||||
ssh-copy-id 'host.fqdn'
|
||||
ssh-copy-id -i "${HOME}/.ssh/id_rsa.pub" 'user@host.fqdn'
|
||||
|
||||
# Preload trusted keys.
|
||||
ssh-keyscan 'host.fqdn' >> "${HOME}/.ssh/known_hosts"
|
||||
|
||||
# Connect to an unreachable host tunnelling the session through a bastion.
|
||||
ssh -t 'bastion-host' ssh 'unreachable-host'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user