Servers and cloud
Connect, copy files and run things remotely. 12 commands.
- Connect to a server with SSHLog in to a remote server from your terminal, with a password or your SSH key.
- Copy files to and from a server (scp)Send a file or folder to a server over SSH, or download one from it.
- Copy your SSH key to a server (log in without a password)Put your public key on a server once, then SSH in without typing its password.
- Add a user and make them an adminCreate a new user account and give it admin (sudo) rights, or list the users you have.
- Find nginx's logs and config, and reload itWhere nginx keeps its error log and config files, how to test a change and how to reload.
- Give servers short names (SSH config file)Type ssh myserver instead of the full user, address and key every time.
- Install TerraformHashiCorp's Terraform, from the official HashiCorp source so it stays up to date.
- Install the AWS CLI and sign inThe aws command, set up with your access keys or AWS SSO.
- Reach a server's private port from your machine (SSH tunnel)Open a database or admin page that only listens on the server, as if it were on your own computer.
- Run a command or script on a server over SSHRun something on a remote server without logging in first, even a script from your own machine.
- Start, stop and read the logs of a serviceControl a background service like nginx or a database and see why it stopped.
- Sync a folder to a server (rsync)Copy a folder to a server and keep it up to date, sending only what changed.