Blog

MCQs

Disclaimer:

Educational Use Only:

The website links provided are to be used strictly for educational and knowledge-gaining purposes only.

No Misuse:

Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.

Respect for Websites and Businesses:

Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.

Acknowledge Value of Knowledge:

Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.

No Endorsement:

The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.

User Responsibility:

By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.


  1. Secure Shell (SSH) network protocol is mainly used for
    a. Secure data communication
    b. Remote command-line login
    c. Remote command execution
    d. All of the mentioned
    Answer: d. All of the mentionedsanfoundry
  2. SSH can be used in which type of operating systems?
    a. Unix-like operating systems
    b. Windows
    c. Both Unix-like and Windows systems
    d. None of the mentioned
    Answer: c. Both Unix-like and Windows systemssanfoundry
  3. SSH uses which method to authenticate the remote computer?
    a. Public-key cryptography
    b. Private-key cryptography
    c. Any of public-key or private-key
    d. Both public-key & private-key
    Answer: a. Public-key cryptographysanfoundry
  4. Which standard TCP port is assigned for connecting to SSH servers?
    a. Port 21
    b. Port 22
    c. Port 23
    d. Port 24
    Answer: b. Port 22sanfoundry
  5. Which protocol, except SSH, can be used for login to a shell on a remote host?
    a. Telnet
    b. Rlogin
    c. Both Telnet and Rlogin
    d. None of the mentioned
    Answer: c. Both Telnet and Rloginsanfoundry
  6. Which of the following is a file transfer protocol that uses SSH?
    a. SCP
    b. SFTP
    c. Rsync
    d. All of the mentioned
    Answer: d. All of the mentionedsanfoundry
  7. Who developed the first version of SSH?
    a. Tim Berners-Lee
    b. Vint Cerf
    c. Tatu Ylonen
    d. Radia Perlman
    Answer: c. Tatu Ylonentutorialspoint
  8. What is the default configuration file of an SSH server in Linux?
    a. /etc/hosts
    b. /etc/sshd_config
    c. /etc/ssh/sshd_config
    d. /etc/ssh/config
    Answer: c. /etc/ssh/sshd_configlinuxforfreshers
  9. Which SSH protocol version is more secure and efficient?
    a. SSH 1
    b. SSH 2
    c. Both are same
    d. None
    Answer: b. SSH 2tutorialspoint
  10. Which of the following is NOT a secure shell protocol?
    a. Transport Layer Protocol
    b. Secure Layer Protocol
    c. Connection Protocol
    d. User Authentication Protocol
    Answer: b. Secure Layer Protocolsanfoundry
  11. SSH is a protocol that works with which model?
    a. UDP client-server
    b. TCP client-server
    c. Peer-to-peer
    d. Connectionless model
    Answer: b. TCP client-servernetburner
  12. In SSH, which protocol provides data confidentiality and integrity during transfer?
    a. FTP
    b. SSL
    c. SSH
    d. HTTP
    Answer: c. SSHtrustedinstitute
  13. Which encryption method is commonly used for SSH data encryption?
    a. AES
    b. DES
    c. 3DES
    d. RC4
    Answer: a. AESsanfoundry
  14. Which of the following commands is used to initiate an SSH connection from a client?
    a. connect
    b. login
    c. ssh
    d. telnet
    Answer: c. sshtechtarget
  15. Which SSH feature helps protect passwords and data from being intercepted?
    a. Data compression
    b. Encryption
    c. Hashing
    d. Port forwarding
    Answer: b. Encryptiontrustedinstitute
  16. What does the ‘scp’ command do?
    a. Compress files
    b. Securely copy files
    c. Start SSH service
    d. Encrypt folders
    Answer: b. Securely copy filestrustedinstitute
  17. Which file is used to store the public keys of servers previously connected in SSH?
    a. known_hosts
    b. id_rsa.pub
    c. authorized_keys
    d. ssh_config
    Answer: a. known_hoststechtarget
  18. Which SSH protocol layer is responsible for user authentication?
    a. Transport Layer
    b. User Authentication Layer
    c. Connection Layer
    d. Session Layer
    Answer: b. User Authentication Layersanfoundry
  19. Which port does SCP use by default?
    a. 22
    b. 21
    c. 23
    d. 25
    Answer: a. 22sanfoundry
  20. What is the purpose of the authorized_keys file in SSH?
    a. Stores private keys
    b. Stores list of users
    c. Contains authorized public keys for login
    d. Stores encrypted passwords
    Answer: c. Contains authorized public keys for logintechtarget
  21. What is a recommended cryptographic algorithm for SSH encryption?
    a. DES
    b. 3DES
    c. AES-128
    d. Blowfish
    Answer: c. AES-128sanfoundry
  22. What does SFTP stand for in SSH context?
    a. Secure File Transfer Protocol
    b. Simple File Transfer Protocol
    c. Secure Folder Transfer Protocol
    d. Static File Transport Protocol
    Answer: a. Secure File Transfer Protocoltrustedinstitute
  23. What is required to initiate a key-based SSH login?
    a. Password
    b. Both client and server keys
    c. Only server key
    d. Only client key
    Answer: b. Both client and server keystutorialspoint
  24. Which one of the following is NOT a valid SSH authentication method?
    a. Password-based
    b. Public key-based
    c. Host-based
    d. CAPTCHA-based
    Answer: d. CAPTCHA-basedsanfoundry
  25. In SSH, what is port forwarding used for?
    a. Encrypting messages
    b. Forwarding network traffic securely
    c. Changing port numbers
    d. Speeding up the SSH connection
    Answer: b. Forwarding network traffic securelytrustedinstitute
  26. What is the command to copy a file to a remote server using SSH?
    a. copy
    b. scp
    c. rsync
    d. send
    Answer: b. scpsanfoundry
  27. SSH replaces which insecure protocol for remote administration?
    a. SNMP
    b. Telnet
    c. NTP
    d. SMTP
    Answer: b. Telnettechtarget
  28. SSH ensures protection against what kind of attack?
    a. Man-in-the-middle
    b. Phishing
    c. SQL Injection
    d. Brute-force
    Answer: a. Man-in-the-middletutorialspoint
  29. Which configuration file on the server controls SSH settings?
    a. /etc/ssh/sshd_config
    b. /etc/hosts
    c. /etc/passwd
    d. /etc/ssh/config
    Answer: a. /etc/ssh/sshd_configlinuxforfreshers
  30. What does the ‘-p’ option specify in the SSH command?
    a. Password
    b. Port number
    c. Protocol version
    d. Public key
    Answer: b. Port numberlinuxforfreshers
  31. SSH is commonly used by which professionals?
    a. Graphic Designers
    b. System Administrators
    c. Teachers
    d. Journalists
    Answer: b. System Administratorstechtarget
  32. Why is SSH preferred over Telnet for secure communication?
    a. SSH is faster
    b. SSH provides encryption
    c. SSH uses fewer resources
    d. SSH supports more users
    Answer: b. SSH provides encryptiontutorialspoint
  33. Which SSH version fixed major security issues present in the earlier version?
    a. SSH v0
    b. SSH1
    c. SSH2
    d. SSH3
    Answer: c. SSH2tutorialspoint
  34. Which of the following SSH key types is considered most secure?
    a. DSA
    b. RSA
    c. Ed25519
    d. DES
    Answer: c. Ed25519techtarget
  35. Which network layer does SSH operate on?
    a. Application Layer
    b. Transport Layer
    c. Data Link Layer
    d. Network Layer
    Answer: a. Application Layernetburner
  36. File transfer over SSH can be performed using which command in Linux?
    a. copy
    b. telnet
    c. scp
    d. ftp
    Answer: c. scpsanfoundry
  37. What does ‘ssh-keygen’ do?
    a. Generates passwords
    b. Generates SSH key pairs
    c. Connects to a remote host
    d. Encrypts files
    Answer: b. Generates SSH key pairstechtarget
  38. Which mode of operation is recommended for encryption and decryption in SSH’s transport layer?
    a. ECB
    b. OFB
    c. CBC
    d. CFB
    Answer: c. CBCsanfoundry
  39. Which hashing algorithm is often used in SSH for integrity checking?
    a. SHA1
    b. MD5
    c. SHA256
    d. CRC
    Answer: a. SHA1sanfoundry
  40. When was the first version of SSH released?
    a. 1990
    b. 1993
    c. 1995
    d. 1999
    Answer: c. 1995tutorialspoint
  41. Which command syntax is used to open an SSH session to a remote host called myserver.com as user admin?
    a. ssh admin:myserver.com
    b. ssh login admin@myserver.com
    c. ssh admin@myserver.com
    d. ssh myserver.com@admin
    Answer: c. ssh admin@myserver.comtechtarget
  42. SHA1 is used in SSH for which purpose?
    a. Compressing data
    b. Integrity checking
    c. Encryption
    d. Compression
    Answer: b. Integrity checkingsanfoundry
  43. How are SSH keys typically distributed for user authentication?
    a. Print them on paper
    b. Email as plain text
    c. Transfer public key to server
    d. Send private key to server
    Answer: c. Transfer public key to servertechtarget
  44. The sshd daemon runs on which side?
    a. Client
    b. Server
    c. Switch
    d. Firewall
    Answer: b. Serverlinuxforfreshers
  45. What file on the client machine stores known SSH hosts?
    a. ~/.ssh/known_hosts
    b. ~/.ssh/id_rsa
    c. ~/ssh/hosts
    d. ~/.ssh/authorized_keys
    Answer: a. ~/.ssh/known_hoststechtarget
  46. What is a session identifier in the context of SSH?
    a. User password
    b. Unique hash value per session
    c. Port number
    d. Public key name
    Answer: b. Unique hash value per sessionsanfoundry
  47. How many protocols is SSH organized as?
    a. One
    b. Two
    c. Three
    d. Four
    Answer: c. Threesanfoundry
  48. Which action is possible through SSH but not via Telnet?
    a. Secure file transfer
    b. Sending emails
    c. Running scripts
    d. Printing
    Answer: a. Secure file transfertrustedinstitute
  49. What does the command ‘ssh -v’ display?
    a. SSH version
    b. Verbose debug information
    c. Valid keys
    d. Vault of passwords
    Answer: b. Verbose debug informationlinuxforfreshers
  50. When connecting for the first time to a server using SSH, what does the client receive to ensure authenticity?
    a. Server IP
    b. Host key fingerprint
    c. User’s password
    d. Server’s serial number
    Answer: b. Host key fingerprinttechtarget

 

  1. https://www.sanfoundry.com/computer-networks-questions-answers-ssh/
  2. https://www.tutorialspoint.com/cryptography/cryptography_ssh_protocol.htm
  3. https://www.linuxforfreshers.com/p/ssh-interview-questions-and-answers.html
  4. https://www.sanfoundry.com/network-security-questions-answers-secure-shell-i/
  5. https://www.netburner.com/learn/introduction-to-the-ssh-protocol/
  6. https://trustedinstitute.com/concept/comptia-network+/network-services/ssh/
  7. https://www.techtarget.com/searchsecurity/definition/Secure-Shell
  8. https://www.sanfoundry.com/network-security-puzzles/
  9. https://edurev.in/test/7072/Test-SSH-Application-Layer
  10. https://www.remoterocketship.com/advice/10-ssh-interview-questions-and-answers-in-2023
  11. https://www.tecmint.com/ssh-interview-questions/
  12. https://www.scribd.com/document/856519337/more-mcqs-computer-networks-set-17
  13. https://www.youtube.com/watch?v=tt_DeyDpLkw
  14. https://allabouttesting.org/top-ssh-interview-questions-and-answers/
  15. https://www.cloudflare.com/learning/access-management/what-is-ssh/
  16. https://labex.io/tutorials/shell-shell-interview-questions-and-answers-593702
  17. https://sites.google.com/view/learnlifehub/linux-question-with-answer/100-top-real-time-linux-multiple-choice-questions
  18. https://www.ssh.com/academy/ssh/protocol
  19. https://arkit.co.in/20-ssh-secure-shell-linux-interview-questions-answers/
  20. https://www.youtube.com/watch?v=aXvhFdA7pps

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!