Problem

In this hands-on project, you use SSH to perform remote administration on your local com...

In this hands-on project, you use SSH to perform remote administration on your local computer and a partner’s computer.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type chkconfig --list sshd and press Enter. What runlevel is the SSH daemon started in by default?

3. At the command prompt, type ssh root@localhost and press Enter. When prompted to connect to the remote system, type yes and press Enter. Next, supply the root user’s password of secret and press Enter.

4. At the command prompt, type who and press Enter. Can you tell whether you received a BASH shell via SSH?

5. At the command prompt, type exit and press Enter. What did this do?

6. At the command prompt, type who and press Enter. Compare this with the output from Step 4.

7. At the command prompt, type ssh IP_address and press Enter, where IP_address is the IPv4 address of your partner’s computer. When prompted to continue connecting, type yes and press Enter. Next, supply the root user’s password of secret and press Enter.

8. At the command prompt, type ps –elf |grep Z and press Enter. Are there any zombie processes on your partner’s computer? Could you monitor your partner’s computer using other commands remotely?

9. At the command prompt, type ifconfig and press Enter. Is your computer’s IP configuration listed? Why?

10. At the command prompt, type exit and press Enter.

11. At the command prompt, type ifconfig and press Enter. Is your computer’s IP configuration listed? Why?

12. At the command prompt, type ssh IP_address cat /etc/issue > /root/ partner_issue and press Enter, where IP_address is the IPv4 address of your partner’s computer. Next, supply the root user’s password of secret and press Enter.

13. At the command prompt, type ifconfig and press Enter. Is your computer’s IP configuration listed? Why?

14. At the command prompt, type cat partner_issue and press Enter. Was your partner’s issue file transferred successfully?

15. At the command prompt, type less /etc/ssh/ssh_config and press Enter. Examine the SSH client options available. Note the encryption algorithms supported in the commented Ciphers line. Press q when finished.

16. At the command prompt, type less /etc/ssh/sshd_config and press Enter. Examine the SSH daemon options available. What line would allow root connections to the SSH daemon if they were not allowed by default? Press q when finished.

17. At the command prompt, type cat /root/.ssh/known_hosts and press Enter. What two hosts are listed in this file and why?

18. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 12