Step 1/1: Run a remote command

ssh HOST logs in to another machine and gives you a shell there; exit comes back. ssh HOST COMMAND runs one command there without logging in and brings back the output. For another user write USER@HOST, for a port other than 22 add -p PORT. The first connection asks whether to trust the host key.

$ ssh backup01 hostname
Fundamentalssshnetwork
Run a command on another machine
Use ssh to run whoami on backup01 without logging in and out (a key is set up, so no password is asked).

This exercise needs real Linux

The commands it uses (processes, networking and more) are not in the simulator. Switch to real Linux and the exercise runs in a real Linux system inside your browser.

ncNext lesson:ssh-keygen