Bash Shell Scripting- Executing commands on remote server without logging into remote server

Bash Shell Scripting- Executing commands on remote server without logging into remote server

Assessment

Interactive Video

•

Information Technology (IT), Architecture

•

University

•

Practice Problem

•

Hard

Created by

Wayground Content

FREE Resource

The video tutorial explains how to use SSH to log into remote servers and execute commands. It covers both manual and automated methods, including password and passwordless authentication. The tutorial also demonstrates how to store command outputs in variables or files and handle interactive commands. Finally, it shows how to execute multiple commands at once using SSH.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two types of authentication environments mentioned for executing commands on a remote server using SSH?

Password and passwordless authentication

Biometric and token-based authentication

Single-factor and multi-factor authentication

Local and remote authentication

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'StrictHostKeyChecking' option in SSH?

To log all SSH commands

To encrypt the SSH session

To automatically accept the server's fingerprint

To enable passwordless login

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is the first method of executing commands on a remote server not suitable for automation?

It requires manual login each time

It does not support password authentication

It requires a graphical user interface

It is only available for Linux servers

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you store the output of a command executed on a remote server into a variable?

By using the 'cat' command

By using the 'scp' command

By using parentheses around the command

By using the 'echo' command

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between executing a command locally and on a remote server using SSH?

Remote execution requires specifying a user and host

Local execution requires a password

Local execution is faster

Remote execution does not return any output

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you append the output of a command to an existing file on your local server?

Using a double greater than symbol '>>'

Using a semicolon ';'

Using a pipe '|'

Using a single greater than symbol '>'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a limitation of executing multiple commands on a remote server with SSH?

You must provide a password for each command

You cannot use interactive commands

You can only execute one command at a time

You cannot store the output of multiple commands

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?