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.
- 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 - 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 - 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 - 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 - 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 - 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 - Who developed the first version of SSH?
a. Tim Berners-Lee
b. Vint Cerf
c. Tatu Ylonen
d. Radia Perlman
Answer: c. Tatu Ylonentutorialspoint - 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 - 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 - 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 - 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 - In SSH, which protocol provides data confidentiality and integrity during transfer?
a. FTP
b. SSL
c. SSH
d. HTTP
Answer: c. SSHtrustedinstitute - Which encryption method is commonly used for SSH data encryption?
a. AES
b. DES
c. 3DES
d. RC4
Answer: a. AESsanfoundry - 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 - Which SSH feature helps protect passwords and data from being intercepted?
a. Data compression
b. Encryption
c. Hashing
d. Port forwarding
Answer: b. Encryptiontrustedinstitute - 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 - 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 - 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 - Which port does SCP use by default?
a. 22
b. 21
c. 23
d. 25
Answer: a. 22sanfoundry - 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 - What is a recommended cryptographic algorithm for SSH encryption?
a. DES
b. 3DES
c. AES-128
d. Blowfish
Answer: c. AES-128sanfoundry - 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 - 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 - 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 - 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 - 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 - SSH replaces which insecure protocol for remote administration?
a. SNMP
b. Telnet
c. NTP
d. SMTP
Answer: b. Telnettechtarget - 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 - 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 - 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 - SSH is commonly used by which professionals?
a. Graphic Designers
b. System Administrators
c. Teachers
d. Journalists
Answer: b. System Administratorstechtarget - 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 - Which SSH version fixed major security issues present in the earlier version?
a. SSH v0
b. SSH1
c. SSH2
d. SSH3
Answer: c. SSH2tutorialspoint - Which of the following SSH key types is considered most secure?
a. DSA
b. RSA
c. Ed25519
d. DES
Answer: c. Ed25519techtarget - Which network layer does SSH operate on?
a. Application Layer
b. Transport Layer
c. Data Link Layer
d. Network Layer
Answer: a. Application Layernetburner - File transfer over SSH can be performed using which command in Linux?
a. copy
b. telnet
c. scp
d. ftp
Answer: c. scpsanfoundry - 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 - 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 - Which hashing algorithm is often used in SSH for integrity checking?
a. SHA1
b. MD5
c. SHA256
d. CRC
Answer: a. SHA1sanfoundry - When was the first version of SSH released?
a. 1990
b. 1993
c. 1995
d. 1999
Answer: c. 1995tutorialspoint - 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 - SHA1 is used in SSH for which purpose?
a. Compressing data
b. Integrity checking
c. Encryption
d. Compression
Answer: b. Integrity checkingsanfoundry - 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 - The sshd daemon runs on which side?
a. Client
b. Server
c. Switch
d. Firewall
Answer: b. Serverlinuxforfreshers - 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 - 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 - How many protocols is SSH organized as?
a. One
b. Two
c. Three
d. Four
Answer: c. Threesanfoundry - 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 - 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 - 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
- https://www.sanfoundry.com/computer-networks-questions-answers-ssh/
- https://www.tutorialspoint.com/cryptography/cryptography_ssh_protocol.htm
- https://www.linuxforfreshers.com/p/ssh-interview-questions-and-answers.html
- https://www.sanfoundry.com/network-security-questions-answers-secure-shell-i/
- https://www.netburner.com/learn/introduction-to-the-ssh-protocol/
- https://trustedinstitute.com/concept/comptia-network+/network-services/ssh/
- https://www.techtarget.com/searchsecurity/definition/Secure-Shell
- https://www.sanfoundry.com/network-security-puzzles/
- https://edurev.in/test/7072/Test-SSH-Application-Layer
- https://www.remoterocketship.com/advice/10-ssh-interview-questions-and-answers-in-2023
- https://www.tecmint.com/ssh-interview-questions/
- https://www.scribd.com/document/856519337/more-mcqs-computer-networks-set-17
- https://www.youtube.com/watch?v=tt_DeyDpLkw
- https://allabouttesting.org/top-ssh-interview-questions-and-answers/
- https://www.cloudflare.com/learning/access-management/what-is-ssh/
- https://labex.io/tutorials/shell-shell-interview-questions-and-answers-593702
- https://sites.google.com/view/learnlifehub/linux-question-with-answer/100-top-real-time-linux-multiple-choice-questions
- https://www.ssh.com/academy/ssh/protocol
- https://arkit.co.in/20-ssh-secure-shell-linux-interview-questions-answers/
- https://www.youtube.com/watch?v=aXvhFdA7pps