Active Topics

 



Notices


Reply
Thread Tools
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#11
NOW the connection went through, thanks a lot. I cannot connect to the machine probably because i am using rdesktop-gui
 
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#12
Now The connection went through, cant connect to the winmachine, using the rdesktop with Gui
 
Posts: 58 | Thanked: 8 times | Joined on Nov 2009 @ Germany
#13
I have never used the gui so i cant tell. Try using 3389 also as the local port (the first port in the command line) and connect to localhost using the gui. If that doesn't work you'll have to use the command line version i guess.
 
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#14
Works perfect, Thanks!!!!!
 
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#15
Is it possible to make a script of this so i dont have to write it everytime i want to login to my remote computer?
 
Posts: 58 | Thanked: 8 times | Joined on Nov 2009 @ Germany
#16
It is.
Code:
sudo gainroot
cd /usr/bin
vim ssh-tunnel.sh
now you get into vim editor (make sure this is installed). You could use another editor if you like.
In vim type i to get into insert mode and write
Code:
#!/bin/sh
<insert the command that works for you here>
hit esc to leave insert mode.
type
Code:
:wq
to exit vim and safe the file.
Change file rights using
Code:
chmod 774 ssh-tunnel.sh
You could even make a shortcut on the desktop, but i wont describe that on my lunchbreak.

Last edited by Duke; 2010-01-20 at 12:24.
 

The Following User Says Thank You to Duke For This Useful Post:
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#17
Thanks again for the help, really need it. How do i execute this script, do i have to be root?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#18
From X Terminal, just run (as the normal user):
Code:
./ssh-tunnel.sh
 
Posts: 35 | Thanked: 2 times | Joined on Dec 2009 @ sweden
#19
i get ssh-tunnel.sh not found?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#20
Sorry, my mistake - I missed the part where it was being installed in /usr/bin. You should be able to just run ssh-tunnel.sh, except that the chmod statement Duke gave you earlier is incorrect. You'll need to fix that first:
Code:
sudo gainroot
chmod 755 /usr/bin/ssh-tunnel.sh
exit
 

The Following User Says Thank You to Rob1n For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 08:18.