wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz on SSH, NFS, and SMB

Total questions: 51

Worksheet time: 26mins

Name
Class
Date
1.

SSH operates on which default port?

a)

21

b)

22

c)

23

d)

80

2.

What is the primary use of SSH?

a)

Sharing printers

b)

Remote Login and Command Execution

c)

Browsing the internet

d)

Playing games

3.

Which protocol ensures secure file transfers in SSH?

a)

FTP

b)

SCP

c)

HTTP

d)

Telnet

4.

Which tool is used for GUI-based remote access?

a)

SCP

b)

AnyDesk

c)

Telnet

d)

SSH

5.

What is a key feature of SSH encryption?

a)

Ensures confidentiality during transmission

b)

Prevents access to remote servers

c)

Enables graphical user interfaces

d)

Limits file size

6.

Which component of SSH is installed on the local machine?

a)

SSH Server

b)

SSH Client

c)

Authentication Protocol

d)

NFS Server

7.

How does public key authentication improve security?

a)

Passwordless Login

b)

No need for encryption

c)

Prevents all cyber attacks

d)

Supports only IPv6

8.

What is the purpose of the command `sudo apt install openssh-server`?

a)

Install the SSH client

b)

Install the SSH server

c)

Stop the SSH service

d)

Install the NFS server

9.

Which file is modified to configure SSH settings?

a)

/etc/ssh/sshd_config

b)

/etc/ssh/ssh_config

c)

~/.ssh/authorized_keys

d)

/etc/ssh/ssh_host

10.

What does the SCP `-r` option do?

a)

Enables verbose output

b)

Copies directories recursively

c)

Specifies a private key

d)

Enables compression

11.

Which command generates an SSH key pair?

a)

ssh-keygen

b)

ssh-add

c)

scp -i

d)

ssh-agent

12.

What does the `-L` option in SSH tunneling do?

a)

Establish a reverse tunnel

b)

Set up a local port forward

c)

Enable passwordless authentication

d)

Configure firewall rules

13.

Which option enables verbose mode in SSH?

a)

-v

b)

-vv

c)

-h

d)

-p

14.

What is the default directory for storing SSH keys?

a)

/usr/ssh

b)

/etc/ssh

c)

~/.ssh

d)

/var/ssh

15.

What is the purpose of `~/.ssh/known_hosts`?

a)

Store SSH configurations

b)

Store trusted server fingerprints

c)

Store private keys

d)

Store user passwords

16.

NFS operates on which default port?

a)

2049

b)

22

c)

80

d)

443

17.

What does NFS stand for?

a)

Network File System

b)

New File Sharing

c)

Node File Sharing

d)

Network Firewall System

18.

What is the main feature of NFSv4?

a)

Improved security

b)

Decreased performance

c)

Limited scalability

d)

Lack of encryption

19.

Which file lists exported shares on an NFS server?

a)

/etc/nfs.conf

b)

/etc/exports

c)

/etc/fstab

d)

/etc/mounts

20.

Which command displays exported NFS shares?

a)

showmount -e

b)

nfsstat -e

c)

df -h

d)

mount -e

21.

How do you mount an NFS share on a client machine?

a)

sudo mount -t nfs :

b)

sudo nfs -t :

c)

sudo ssh -t :

d)

sudo smbmount :

22.

What is the purpose of the `async` option in NFS?

a)

Enable synchronous writes

b)

Allow asynchronous writes

c)

Disable encryption

d)

Enhance GUI

23.

How do you restart the NFS service on Ubuntu?

a)

sudo service nfs restart

b)

sudo restart nfs-server

c)

sudo reboot nfs

d)

sudo systemctl nfs restart

24.

Which option secures NFSv4 communications?

a)

rpcbind

b)

Kerberos

c)

Telnet

d)

FTP

25.

What does the `no_root_squash` option do?

a)

Prevents root access on NFS shares

b)

Allows root access to the NFS share

c)

Squashes all file permissions

d)

Limits file size

26.

SMB stands for:

a)

Server Message Block

b)

Secure Management Base

c)

Small Message Buffer

d)

Server Management Block

27.

SMB primarily operates on which port?

a)

445

b)

139

c)

3389

d)

80

28.

What does SMB enable?

a)

Secure remote login

b)

File and printer sharing

c)

Firewall management

d)

Email communication

29.

Which command installs Samba on Ubuntu?

a)

sudo apt install samba

b)

sudo yum install samba

c)

sudo install smb

d)

sudo service samba install

30.

What is the configuration file for Samba?

a)

/etc/smb.conf

b)

/etc/samba

c)

/usr/smb/config

d)

~/.smb/config

31.

What command tests Samba configuration?

a)

smbtest

b)

testparm

c)

smbdump

d)

testconf

32.

How do you restart the Samba service?

a)

sudo service smb restart

b)

sudo smb -restart

c)

sudo reboot smb

d)

sudo smb refresh

33.

What is the purpose of the `smbpasswd` command?

a)

Set or change Samba user passwords

b)

Mount SMB shares

c)

Configure SMB ports

d)

Test SMB services

34.

What is the default location for Samba shared directories?

a)

/var/samba

b)

/srv/samba

c)

/home/samba

d)

/etc/smbshares

35.

What does the `read only = no` option do in Samba?

a)

Prevents write access

b)

Enables write access

c)

Disables sharing

d)

Allows read access only

36.

You need to securely transfer a file from your local system to a remote server. Which command should you use?

a)

FTP

b)

SCP

c)

SMB

d)

Telnet

37.

You have been tasked to configure an NFS server, but clients cannot mount the shared directory. What could be the issue?

a)

SSH port is closed

b)

Firewall is blocking port 2049

c)

Samba service is down

d)

Incorrect permissions on `/etc/fstab`

38.

A user reports they cannot log in via SSH despite entering the correct credentials. What could be the issue?

a)

The SSH service is disabled

b)

Incorrect IP configuration

c)

The system has no default gateway

d)

DNS resolution is failing

39.

You observe unauthorized SSH login attempts on your server. What is the best immediate action?

a)

Restart the SSH service

b)

Block the source IP using a firewall rule

c)

Update the SSH key pair

d)

Change the default port for SSH

40.

While using SSH, you need to forward local traffic to a remote database. What SSH option is required?

a)

-R

b)

-L

c)

-p

d)

-T

41.

A client mounts an NFS share, but file ownership appears incorrect. What could resolve this?

a)

Enable root squashing

b)

Sync UID and GID between server and client

c)

Disable NFSv4

d)

Use SMB instead

42.

An administrator sets `no_root_squash` in the NFS configuration. What is the consequence?

a)

Root access is denied

b)

Root users on clients have root access to the NFS share

c)

File permissions are squashed

d)

Only read access is allowed

43.

After restarting the Samba service, users report they cannot access shared files. What should you check first?

a)

Firewall rules for port 445

b)

SMB client version

c)

SSH configuration

d)

NFS share configuration

44.

You need to share a directory with both Linux and Windows clients. Which protocol is most suitable?

a)

SSH

b)

NFS

c)

SMB

d)

HTTP

45.

You notice a significant delay when mounting an NFS share. What is the likely cause?

a)

RPC services are unavailable

b)

SSH service is down

c)

Incorrect file permissions

d)

Outdated kernel version

46.

You want to prevent man-in-the-middle attacks during SSH connections. What should you use?

a)

FTP

b)

RSA key pairs

c)

Plaintext passwords

d)

Telnet

47.

You are configuring an SSH server for enhanced security. Which change is most effective?

a)

Disable password authentication

b)

Use port 22

c)

Allow root login

d)

Enable FTP

48.

An attacker is exploiting a misconfigured Samba share to read sensitive files. What option in `smb.conf` would mitigate this?

a)

read only = yes

b)

writable = yes

c)

public = yes

d)

browseable = no

49.

Your company requires NFS shares to be accessible only from specific IP addresses. What configuration change is required?

a)

Use the `hosts.deny` file

b)

Restrict access in `/etc/exports`

c)

Enable root squash

d)

Disable firewall rules

50.

A user reports they cannot access an SMB share from a Linux client. Which command should you use to troubleshoot?

a)

smbclient

b)

scp

c)

nmap

d)

rpcinfo

51.

Which command lists all exported NFS shares on a server?

a)

sudo nfsstat -s

b)

sudo exportfs -v

c)

showmount -e

d)

sudo systemctl status nfs-server