18.ssh.ans.even.RH4

Practical Guide to Fedora and Red Hat Enterprise Linux, A (4th Edition)

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Answers to Even-numbered Exercises 1. What ises? 2. How can you use ssh to find out who is logged in on a remote system? Assuming you have the same username on both systems, the following command may prompt you for your password on the remote system and will display the output of who : $ ssh host who 3. How woul? 4. How would you use ssh to run xterm on bravo and show the display on the local system? Assuming you have the same username on both systems, the following com- mand will run xterm on bravo and present the display on the local system: $ ssh bravo xterm You will need to use the –X option if X11 forwarding is not enabled. 5. Whlocal display? 6. When you try to connect to another system using an OpenSSH client and you see a message warning you that the remote host identification has changed, what has happened? What should you do? This message indicates that the fingerprint of the remote system is not the same as the local system remembers it. Check with the remote system’s administrator to find out if something changed. If everything seems to be
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: in order, remove the remote system’s key from the file specified in the error message and try logging in on the remote system using ssh . The system dis-plays the first-time authentication message (page 656) again as OpenSSH verifies that you are connecting to the correct system. 7. Wm? 18 2 8. Which single command could you give to log in as root on the remote sys-tem named bravo , if bravo has remote root logins disabled? Assuming you have the same username on both systems, the following command will log in on bravo as root : $ ssh -t bravo su -When you run this command, you must supply two passwords (assuming you are running the command as a non root user and you have not set up an automatic login for ssh ): yours and root ’s. The su utility requires that its input come from standard input; the –t option allocates a pseudo-tty (terminal) to run su . 9. How em?...
View Full Document

This document was uploaded on 11/10/2009.

Page1 / 2

18.ssh.ans.even.RH4 - in order, remove the remote...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online