NEW
Font size
WorksheetsQuiz on SSH, NFS, and SMB
Total questions: 51
Worksheet time: 26mins
SSH operates on which default port?
21
22
23
80
What is the primary use of SSH?
Sharing printers
Remote Login and Command Execution
Browsing the internet
Playing games
Which protocol ensures secure file transfers in SSH?
FTP
SCP
HTTP
Telnet
Which tool is used for GUI-based remote access?
SCP
AnyDesk
Telnet
SSH
What is a key feature of SSH encryption?
Ensures confidentiality during transmission
Prevents access to remote servers
Enables graphical user interfaces
Limits file size
Which component of SSH is installed on the local machine?
SSH Server
SSH Client
Authentication Protocol
NFS Server
How does public key authentication improve security?
Passwordless Login
No need for encryption
Prevents all cyber attacks
Supports only IPv6
What is the purpose of the command `sudo apt install openssh-server`?
Install the SSH client
Install the SSH server
Stop the SSH service
Install the NFS server
Which file is modified to configure SSH settings?
/etc/ssh/sshd_config
/etc/ssh/ssh_config
~/.ssh/authorized_keys
/etc/ssh/ssh_host
What does the SCP `-r` option do?
Enables verbose output
Copies directories recursively
Specifies a private key
Enables compression
Which command generates an SSH key pair?
ssh-keygen
ssh-add
scp -i
ssh-agent
What does the `-L` option in SSH tunneling do?
Establish a reverse tunnel
Set up a local port forward
Enable passwordless authentication
Configure firewall rules
Which option enables verbose mode in SSH?
-v
-vv
-h
-p
What is the default directory for storing SSH keys?
/usr/ssh
/etc/ssh
~/.ssh
/var/ssh
What is the purpose of `~/.ssh/known_hosts`?
Store SSH configurations
Store trusted server fingerprints
Store private keys
Store user passwords
NFS operates on which default port?
2049
22
80
443
What does NFS stand for?
Network File System
New File Sharing
Node File Sharing
Network Firewall System
What is the main feature of NFSv4?
Improved security
Decreased performance
Limited scalability
Lack of encryption
Which file lists exported shares on an NFS server?
/etc/nfs.conf
/etc/exports
/etc/fstab
/etc/mounts
Which command displays exported NFS shares?
showmount -e
nfsstat -e
df -h
mount -e
How do you mount an NFS share on a client machine?
sudo mount -t nfs :
sudo nfs -t :
sudo ssh -t :
sudo smbmount :
What is the purpose of the `async` option in NFS?
Enable synchronous writes
Allow asynchronous writes
Disable encryption
Enhance GUI
How do you restart the NFS service on Ubuntu?
sudo service nfs restart
sudo restart nfs-server
sudo reboot nfs
sudo systemctl nfs restart
Which option secures NFSv4 communications?
rpcbind
Kerberos
Telnet
FTP
What does the `no_root_squash` option do?
Prevents root access on NFS shares
Allows root access to the NFS share
Squashes all file permissions
Limits file size
SMB stands for:
Server Message Block
Secure Management Base
Small Message Buffer
Server Management Block
SMB primarily operates on which port?
445
139
3389
80
What does SMB enable?
Secure remote login
File and printer sharing
Firewall management
Email communication
Which command installs Samba on Ubuntu?
sudo apt install samba
sudo yum install samba
sudo install smb
sudo service samba install
What is the configuration file for Samba?
/etc/smb.conf
/etc/samba
/usr/smb/config
~/.smb/config
What command tests Samba configuration?
smbtest
testparm
smbdump
testconf
How do you restart the Samba service?
sudo service smb restart
sudo smb -restart
sudo reboot smb
sudo smb refresh
What is the purpose of the `smbpasswd` command?
Set or change Samba user passwords
Mount SMB shares
Configure SMB ports
Test SMB services
What is the default location for Samba shared directories?
/var/samba
/srv/samba
/home/samba
/etc/smbshares
What does the `read only = no` option do in Samba?
Prevents write access
Enables write access
Disables sharing
Allows read access only
You need to securely transfer a file from your local system to a remote server. Which command should you use?
FTP
SCP
SMB
Telnet
You have been tasked to configure an NFS server, but clients cannot mount the shared directory. What could be the issue?
SSH port is closed
Firewall is blocking port 2049
Samba service is down
Incorrect permissions on `/etc/fstab`
A user reports they cannot log in via SSH despite entering the correct credentials. What could be the issue?
The SSH service is disabled
Incorrect IP configuration
The system has no default gateway
DNS resolution is failing
You observe unauthorized SSH login attempts on your server. What is the best immediate action?
Restart the SSH service
Block the source IP using a firewall rule
Update the SSH key pair
Change the default port for SSH
While using SSH, you need to forward local traffic to a remote database. What SSH option is required?
-R
-L
-p
-T
A client mounts an NFS share, but file ownership appears incorrect. What could resolve this?
Enable root squashing
Sync UID and GID between server and client
Disable NFSv4
Use SMB instead
An administrator sets `no_root_squash` in the NFS configuration. What is the consequence?
Root access is denied
Root users on clients have root access to the NFS share
File permissions are squashed
Only read access is allowed
After restarting the Samba service, users report they cannot access shared files. What should you check first?
Firewall rules for port 445
SMB client version
SSH configuration
NFS share configuration
You need to share a directory with both Linux and Windows clients. Which protocol is most suitable?
SSH
NFS
SMB
HTTP
You notice a significant delay when mounting an NFS share. What is the likely cause?
RPC services are unavailable
SSH service is down
Incorrect file permissions
Outdated kernel version
You want to prevent man-in-the-middle attacks during SSH connections. What should you use?
FTP
RSA key pairs
Plaintext passwords
Telnet
You are configuring an SSH server for enhanced security. Which change is most effective?
Disable password authentication
Use port 22
Allow root login
Enable FTP
An attacker is exploiting a misconfigured Samba share to read sensitive files. What option in `smb.conf` would mitigate this?
read only = yes
writable = yes
public = yes
browseable = no
Your company requires NFS shares to be accessible only from specific IP addresses. What configuration change is required?
Use the `hosts.deny` file
Restrict access in `/etc/exports`
Enable root squash
Disable firewall rules
A user reports they cannot access an SMB share from a Linux client. Which command should you use to troubleshoot?
smbclient
scp
nmap
rpcinfo
Which command lists all exported NFS shares on a server?
sudo nfsstat -s
sudo exportfs -v
showmount -e
sudo systemctl status nfs-server
