-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Okay, I managed to get mine working. First, export things properly:
export VNC_VIA_CMD=’/usr/bin/ssh -f -L %L:%H:%R %G sleep 20’
Drop this in your ~/.bashrc or ~/.bash_profile for persistence if you
are going to use these same settings over and over, which is likely I
suppose. I had a horrible time until I realized, via the vncviewer man
page, that I had left ‘-f’ out of this environment variable.
Once that is done continue as you were, but with slight modifications.
vncviewer -via remoteSSHServerHere vncServerFromSSHServer:desktop
So for you I think it would be:
vncviewer -via 172.16.1.33 localhost
I don’t know why you have the :2 on your vncviewer line… I don’t see
you specifying desktop 2 in your vncserver line, and maybe that’s your
only hangup currently. If so then take care of that… make sure you
see the vncserver listening where you expect it to on the remote desktop:
netstat -anp | grep 'LISTEN ’ | grep :59
Also there is no reason to have VNC open in your firewall if you are
doing this… go ahead and close it to prevent problems where you THINK
you are using SSH and are secure but accidentally are not. This is
especially true since you are on the same network for everything and
it’s not obvious (from VNC) that you’re not using SSH once you’re in the
client.
Good luck.
ab@novell.com wrote:
> This link may help if you haven’t seen it already:
>
> http://www.vanemery.com/Linux/VNC/vnc-over-ssh.html
>
> Another option is to just tunnel your data directly, though this isn’t
> quite as nice since you need to setup your SSH manually and maintain it
> while in VNC Viewer, but this also works for anything TCP-based so it’s
> not limited to VNC:
>
> ssh -L 5599:localhost:5902 user-alpha@remote-desktop
> #and while leaving that open
> vncviewer localhost:5902
>
>
>
> If you get the ‘-via’ option working let us know how you did it,
> though… it’s certainly a nice option for VNC specifically.
>
> Good luck.
>
>
>
>
>
>
> silentstone wrote:
>>> me@laptop:~> vncviewer -via 172.16.1.33 localhost:2
>>> Password:
>>> Password:
>>> Password:
>>> Permission denied (publickey,keyboard-interactive).
>>> vncviewer: Tunneling command failed: /usr/bin/ssh -f -L
>>> 5599:localhost:5902 172.16.1.33 sleep 20.
>> This happens everytime I attempt to VNC to a openSUSE 11.1 desktop from
>> my openSUSE 11.1 laptop, all on the same small LAN. From my laptop, I
>> SSH into the desktop and start VNC as a normal user:
>
>> Code:
>> --------------------
>> me@laptop #: ssh user-alpha@remote-desktop
>> user-alpha@remote-desktop #: vncserver -depth 8 -geometry 800x600
>> --------------------
>
>> Then, I open another xterm on the laptop and try to access that server,
>> whose IP is 172.16.1.33:
>
>> Code:
>> --------------------
>> me@laptop #: vncviewer -via 172.16.1.33 localhost:2
>> --------------------
>
>> I’m a VNC newbie, and not sure if I got everything configured
>> correctly, but YaST2>Security and Users>Firewall reports that SSH server
>> and VNC server are Allowed Services for External Zone, and that the
>> network interface was in that External Zone.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJluPX3s42bA80+9kRAg1tAJ9V/dlpEjqSJl8mGo/UAsNHggsClQCeOqp7
BBcCZ6FnGGm8UpEuhkknND4=
=cQUm
-----END PGP SIGNATURE-----