SysAdmin 101
  • About Me
  • SSH
    • quick notes
    • socks tunneling
  • Tmux
    • quick notes
  • Kubernetes
    • quick notes
    • Setting up a K8S cluster
      • kubespray
      • metalLB
      • Nginx-Ingress
    • Storage
      • Persistent Storage
      • Persistent Storage Claim
  • Ansible
    • quick notes
    • ansible in a container
    • setup Ansible AWX
  • Docker
    • quick notes
    • docker compose
Powered by GitBook
On this page
  1. SSH

quick notes

Jumphost

ssh -J username@jumphost.com username@destination.com

scp using Jumphost

scp -oProxyCommand="ssh -W %h:%p username@jumphost.com" filename.txt username@destination.com:/path

the reverse to pull file

scp -oProxyCommand="ssh -W %h:%p username@jumphost.com" username@destination.com:/path /local/path

X forwarding

ssh -Y username@host.com

X forwarding with sudo

sudo xauth add $(xauth -f ~user/.Xauthority list | tail -1)

PreviousSSHNextsocks tunneling

Last updated 1 year ago