0
0
Linux CLIscripting~10 mins

SSH config file in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the SSH username in the config file.

Linux CLI
Host example
  User [1]
Drag options to blanks, or click blank then click option'
Aadmin
Bssh
Croot
Dguest
Attempts:
3 left
💡 Hint
Common Mistakes
Using a hostname instead of a username.
Leaving the username blank.
Using an invalid username.
2fill in blank
medium

Complete the code to specify the SSH port number in the config file.

Linux CLI
Host example
  Port [1]
Drag options to blanks, or click blank then click option'
A22
B21
C443
D80
Attempts:
3 left
💡 Hint
Common Mistakes
Using HTTP or FTP ports instead of SSH port.
Leaving the port number out when a non-default port is needed.
3fill in blank
hard

Fix the error in the SSH config line to specify the identity file path.

Linux CLI
Host example
  IdentityFile [1]
Drag options to blanks, or click blank then click option'
A/home/user/.ssh/known_hosts
B~/.ssh/id_rsa.pub
C/etc/ssh/ssh_config
D~/.ssh/id_rsa
Attempts:
3 left
💡 Hint
Common Mistakes
Using the public key file instead of the private key.
Using unrelated config or known_hosts files.
4fill in blank
hard

Fill both blanks to set the hostname and enable compression in the SSH config.

Linux CLI
Host [1]
  Compression [2]
Drag options to blanks, or click blank then click option'
Amyserver
Byes
Cno
Dexample.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using a full domain name as the host alias when a simple name is expected.
Setting compression to 'no' when the goal is to enable it.
5fill in blank
hard

Fill all three blanks to create a config that sets the host alias, user, and disables strict host key checking.

Linux CLI
Host [1]
  User [2]
  StrictHostKeyChecking [3]
Drag options to blanks, or click blank then click option'
Adevserver
Bdeveloper
Cno
Dyes
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'StrictHostKeyChecking' values and setting it to 'yes' when disabling is intended.
Using a username that does not exist on the remote server.