View previous topic :: View next topic |
Author |
Message |
asubedi Tux's lil' helper
Joined: 26 Mar 2003 Posts: 105
|
Posted: Thu Apr 17, 2003 11:14 pm Post subject: connecting to my box remotely using Xwin32, telnet and ssh |
|
|
Most of the PCs with win XP installed in our computer labs have Xwin32 installed and I'd love to connect to my box while i'm in my class. However, I have not been able to connect to my box using Xwin32. What do I need to configure to host a Xwin32 client from a windows box?
Could any one point me how to set up my box to host telnet and ssh clients too? |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Apr 18, 2003 1:09 am Post subject: |
|
|
You probably have openssh already installed. Do "emerge -s openssh". Once that is installed, in your /etc/ssh/sshd_config set "PasswordAuthentication" and "X11Forwarding" to yes. Then do "rc-update add sshd default" and "/etc/init.d/sshd start" Putty is an excellent windows ssh client and it is just a singel file so you can use it on the comps at school. Set up a connection to your machine in putty and enable X11 forwrding in the config. Login to your machine with putty. Then start xwin32 and point it a localhost. Now you should be able to run X apps from the putty window and have them show on your display. Setting up your box to allow telnet connections is a bad idea unless you really know what you're doing. |
|
Back to top |
|
|
asubedi Tux's lil' helper
Joined: 26 Mar 2003 Posts: 105
|
Posted: Fri Apr 18, 2003 1:53 am Post subject: |
|
|
It partially worked, Thank you!
All of my /etc/ssh/sshd_config were commented. So, I uncomment the following lines:Port 22; Protocol 2,1 ; PasswordAuthentication yes; X11Forwarding yes. Other than that, ALL of the lines are commented. Now I do the rc-update thing. Then I run ssh <ip address of my box>. After some warnings, it asks for root password (!). I type in my password. Then it prints bunch of "declare -x ...." statements. At the end of the output, it prints "-bash: [: missing `]' ". I cannot issue commands such as ls, clear, emerge, etc. I can issue pwd, cd, source. When I do "source .bashrc" it complains "-bash: dircolors: command not found". When I exit and do source .bashrc in the root directory, there are no errors.
What should I do next? |
|
Back to top |
|
|
dook43 Tux's lil' helper
Joined: 11 Jun 2002 Posts: 116 Location: Baton Rouge, LA
|
Posted: Fri Apr 18, 2003 2:50 am Post subject: |
|
|
Use protocol 2 only _________________ "We who are about to die salute you!" |
|
Back to top |
|
|
asubedi Tux's lil' helper
Joined: 26 Mar 2003 Posts: 105
|
Posted: Fri Apr 18, 2003 2:55 am Post subject: |
|
|
ok I have connected remotedly using putty to my gentoo box. I am able to log in as a normal user, and i can chat using irssi. Now, how do i tunnel the X to XWin32? I have added 127.0.0.1 in the Xhost list of Xwin32. Then I am stuck :-s. What should i do next? |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Apr 18, 2003 5:07 am Post subject: |
|
|
In putty in the tree on the left go to Session->Connection->SSH->Tunnels then there will be a check box for "Enable X11 Forwarding". Check that then connect to your gentoo box. It should "just work" then.
This might help http://www.eos.ncsu.edu/remoteaccess/putty.html
You probably want to enable compression too. X is pretty bandwidth intensive. |
|
Back to top |
|
|
asubedi Tux's lil' helper
Joined: 26 Mar 2003 Posts: 105
|
Posted: Fri Apr 18, 2003 7:22 pm Post subject: |
|
|
I get the following error:
_X11TransSocketINETConnect: Can't get address for localhost
Error: Can't open display: localhost:10.0 |
|
Back to top |
|
|
|