Recall & Review
beginner
What is SSH automation?
SSH automation means using scripts to connect and run commands on remote computers without typing passwords every time.
Click to reveal answer
beginner
How does SSH key-based authentication help in automation?
It uses a pair of keys (private and public) so you don't need to enter a password each time you connect, making scripts run smoothly.
Click to reveal answer
beginner
What command generates an SSH key pair?
The command is
ssh-keygen. It creates a private key and a public key for secure login.Click to reveal answer
beginner
How do you copy your public SSH key to a remote server?
Use
ssh-copy-id user@remote_host. It adds your public key to the server's authorized keys for passwordless login.Click to reveal answer
beginner
What is a simple bash script example to run a command on a remote server using SSH?
Example:<br>
ssh user@remote_host 'ls -l /home/user'<br>This runs the ls -l command on the remote server.Click to reveal answer
Which command creates an SSH key pair for automation?
✗ Incorrect
ssh-keygen creates the key pair needed for passwordless SSH login.
What does
ssh-copy-id do?✗ Incorrect
ssh-copy-id adds your public key to the remote server's authorized keys.
Why use SSH keys for automation instead of passwords?
✗ Incorrect
SSH keys let scripts connect without typing passwords, making automation smooth.
Which command runs
uptime on a remote server via SSH?✗ Incorrect
Use quotes to run commands remotely: ssh user@host 'command'.
What file on the remote server stores authorized public keys?
✗ Incorrect
The authorized_keys file lists public keys allowed to connect.
Explain how to set up SSH automation from scratch.
Think about creating keys, sharing keys, and running commands without passwords.
You got /4 concepts.
Describe why SSH automation is useful in scripting and give an example use case.
Consider repetitive tasks on remote machines.
You got /3 concepts.