I'm trying to access from a PC running XP to a laptop running Red Hat (Red Hat Enterprise Linux WS release 4 (Nahant Update 4)).
What I want to do is execute firefox(make it run on the laptop)from the PC. As far as I am concerned, I need to forwardX11 through the ssh session, so I need to have an ssh server on the laptop and a ssh client on the PC.
I installed putty on the PC, and I was even able to open a ssh session but for some reason when I tried executing firefox nothing happened. I had previously enabled X11 forwarding under putty and I had added localhost:0 in the X display location box as well but it wasn't working anyway.
So I installed openSSH and openSSL in the laptop (as I wasn't sure what ssh server I had previously, I don't know if I should have erased the previous ssh server... as you might start to guess, I'm a bit newbie...).
After installing them, I did the following:
I added this line into /etc/rc.d/rc.local:
cp /usr/local/src/openssh-2.9p2/contrib/redhat/sshd.pam /etc/pam.d/sshd
I changed X11Forwarding no to X11Forwarding yes
Finally I followed these instructions to create a key in the laptop:
Generating public/private rsa1 key pair.
Enter file in which to save the key (/Users/user/.ssh/identity):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/user/.ssh/identity.
Your public key has been saved in /Users/user/.ssh/identity.pub.
The key fingerprint is:
After all this mess, when I try to establish the ssh session I get:
Even if I try ssh localhost from the laptop I get the same message.
I don't know even where to start to look at, any ideas?:confused: