Cheatsheet

Things to keep in mind.

  • Category: DevOps
  • Last updated: Fri, Mar 14, 2025

Lookup public IP of host

curl https://ipinfo.io/ip

Transfer files or folders from Windows to Linux via SSH with scp:

  • -i - used for the ssh key
  • -P - used for the ssh port of the target
  • -r - used to transfer the entire folder
    scp -i "PATH-TO-SSH-KEY" -P 22 -r "PATH-TO-DIR" TARGET-USER@TARGET-IP:PATH/TO/TARGET
    

Pushing an image to a docker registry:

docker tag your-image-name registry.example.com/your-namespace/your-image-name:tag