Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to connect to a remote server using SSH.
Linux CLI
ssh [1]@example.com Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'password' instead of username in the ssh command.
Omitting the username entirely.
✗ Incorrect
The SSH command requires the username before the @ symbol to connect to the remote server.
2fill in blank
mediumComplete the code to specify a custom port when connecting via SSH.
Linux CLI
ssh -p [1] user@example.com Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using port 80 or 443 which are for web traffic, not SSH.
Using the default port 22 when a custom port is needed.
✗ Incorrect
The -p option specifies the port number for SSH. Port 2222 is a common alternative SSH port.
3fill in blank
hardFix the error in the SSH command to connect to the server.
Linux CLI
ssh [1]example.com -p 22
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the '@' between username and hostname.
Placing the port option before the hostname.
✗ Incorrect
The username must be before the @ symbol in the hostname, so the command should be 'ssh user@example.com -p 22'.
4fill in blank
hardFill both blanks to create an SSH command that connects to 'server.com' as 'admin' on port 2200.
Linux CLI
ssh [1]@[2] -p 2200
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping username and hostname positions.
Using the wrong hostname.
✗ Incorrect
The username is 'admin' and the hostname is 'server.com' to connect correctly.
5fill in blank
hardFill all three blanks to create a command that copies a file 'file.txt' from local to remote server 'host.com' as user 'alice' using SCP.
Linux CLI
scp [1] [2]@[3]:~/
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong file name.
Swapping username and hostname.
Omitting the colon ':' after hostname.
✗ Incorrect
The SCP command syntax is 'scp localfile user@hostname:destination'. Here, 'file.txt' is copied to 'alice@host.com' home directory.