View Single Post
Posts: 152 | Thanked: 41 times | Joined on Dec 2009 @ Sydney
#54
Originally Posted by salle74 View Post
Hello, i have managed to get the file to the right place and it shows i apps.
My code looks like this

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=topx
Exec=/usr/bin/osso-xterm ssh -L 3389:xxx.xxx.1.xxx:3389 root@mydns -p XXXX
Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

but the window dissapear and the nothing happens, can someone help med with this, new at this. Iwould like the shortcut to open upp ssh between n900 and home computer. Am i completly offroad?
osso-xterm only supports one argument.

So your best course of action is:
1. Create /usr/local/bin/ssh-localforward.sh
with contents:
Code:
#!/bin/sh
ssh -L 3389:xxx.xxx.1.xxx:3389 root@mydns -p XXXX
exit 0
2. Make executable:
Code:
chmod 755 /usr/local/bin/ssh-localforward.sh
3. Change:
Code:
Exec=/usr/bin/osso-xterm ssh -L 3389:xxx.xxx.1.xxx:3389 root@mydns -p XXXX
to:
Code:
Exec=/usr/bin/osso-xterm /usr/local/bin/ssh-localforward.sh