onsdag 18 februari 2004 02:23 skrev Terje J. Hanssen:
Command dialog: --------------- On hostA I log in to hostB and enter the following commands:
hostB-> xhost hostC hostB-> rlogin hostC
Now you are telling hostB, that it should allow connections FROM hostC.
hostC % setenv DISPLAY hostA:0 hostC % XclientApp
Have you done: hostA-> xhost hostC which is needed for the above.
hostB-> rlogin hostA hostA % xhost hostC which only resulted in the following error message: unable to open display ""
rlogin to another machine, does not give you control over that machines X server. Which is what you are attempting to do. To be able to do the above, you must be the owner, or user of that hosts X server. That is, the one logged in to that machine, otherwise you cannot tell that X, to accept connections from anywhere. Only the user of that session, has that right. Given, that you are logged in on the workstation hostA, directly: hostA-> xhost hostB hostA-> rlogin hostB hostB-> export DISPLAY=hostA:0 hostB-> xterm Will run an xterm on hostB, and show the window up on hostA. --- And now, for simplifications. Abandon the r-commands, they are insecure and not used anymore. hostA-> ssh -X hostB hostB-> xterm Will do the same thing, as earlier ... of course, in this situation you will have to type a password, assuming you have a distributed /home directories accross your network, where all workstation will have the same /home for each user, wherever they are logged in: hostA-> ssh-keygen -t rsa ; no passphrase hostA-> cat .ssh/id_rsa.pub >>.ssh/authorized_keys2 hostA-> ssh -X hostB ; just as if rlogin hostB-> xterm And remove all references to ssh v1 in the sshd.conf file, as well as allowing passwords to be sent. Use keys only, with or without a passphrase.