maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Ssh (https://talk.maemo.org/showthread.php?t=81260)

Addison 2012-01-01 21:30

Ssh
 
I was ablle to SSH into my tablet for the first time about a week ago.

What are some neat things that I can do between my tablet and PC with this?

I do like old school stuff, games like Nethack, and I really love media, both videos and music.

Thanks. :)

Estel 2012-01-01 22:23

Re: Ssh
 
Virtually anything You want, including X forwarding and any kind of virtual desktop finally *secure*, without sending passwords/traffic in the clear. Or, create encrypted tunnel between two machines, even if one is unreachable (behind NAT, that You don't control, so can't open ports), or even both unreachable, if You use common server in between, Your own (for example, home router with Tomato/OpenWRT/DD-WRT/whatever capable of real ssh), or one available as service (some of them free, google for it).

That was only to name few - it is hard to answer Your question, because it's like "I've got my first computer yesterday, please list neat things that I can do with it. I like playing soceer and basketball, and I'm listening to Heavy Metal". SSH is very wide topic, where only Your invention limit usage*.

/Estel

*Trivia - just half of an hour ago, I used N900 to control CNC machine, via emc2 and linuxbox without monitor. And, of course, I was connected using SSH ;)

Addison 2012-01-01 22:27

Re: Ssh
 
Wow.

Your first paragraph made absolutely no sense to me since I've never heard any of those before.

Off to type some of your suggestions into Google. :)

ade 2012-01-01 22:54

Re: Ssh
 
scp (secure copy) is based on ssh. Ideal for transfering files.

I use rsync over ssh to synchonize certain data between my N900 and my linux desktop.

Like Estel said, options are plenty.

Can't imagine you where able to live without ssh for all that time :)

Addison 2012-01-01 22:58

Re: Ssh
 
I Googled "what is x forwarding" and only got 5 hits.

I'm still trying to wrap my head around this concept.

Any good links would be really great if you've got them.

Thanks. :)

abyzthomas 2012-01-01 23:22

Re: Ssh
 
Couple useful things you can do:

Transfer files back and forth between Tablet and Desktop. Linux Gnome (or KDE) allows you to mount ssh filesystems by just typing the URL like sftp://root@192.168.0.2/home in Nautilus in location bar. This allows you to browse, see, edit,etc files from your tablet on your pc like files on your system. From Windows desktop, you can use winscp to access filesystem graphically.

Run any applications from your tablet on your PC, including graphical. ssh -X from Linux or using Xming or similar from Windows.

abyzthomas 2012-01-01 23:26

Re: Ssh
 
Quote:

Originally Posted by Addison (Post 1144343)
I Googled "what is x forwarding" and only got 5 hits.

I'm still trying to wrap my head around this concept.

Any good links would be really great if you've got them.

Thanks. :)

x forwarding allows you to run graphical applications from remote system (your tablet) on your Desktop. It runs the program on the remote system, but the graphical window opens on local PC.

If you are using Linux desktop, it is available native.

If you are using Windows, then you need Xming or similar program.

Addison 2012-01-01 23:31

Re: Ssh
 
^ So to keep things simple, X Forwarding would let my play the default Solitaire game from my Windows XP on my tablet?

Ooh. :)

ade 2012-01-01 23:41

Re: Ssh
 
Quote:

Originally Posted by Addison (Post 1144355)
^ So to keep things simple, X Forwarding would let my play the default Solitaire game from my Windows XP on my tablet?

Ooh. :)

Not gonna work. Windows is not based on X. Your remote machine has to use an X server.

Addison 2012-01-01 23:44

Re: Ssh
 
^ Back to do some more Googling then. *lol*

I think I need to watch a YouTube vid or something to better understand this.

ade 2012-01-02 00:07

Re: Ssh
 
On a windows PC, you can run X applications from a remote X based machine.
On that windows PC, you will need: an X server (bit confusing, because you are more like a client) like Xming and a terminal program like putty with x forwarding enabled.

If it is resolution wise possible, you can also take over a desktop just using VNC. Somewhat easier to configure and you can also control windows remote.

Good luck experimenting :)

anthonie 2012-01-02 00:56

Re: Ssh
 
Have a look at this
http://www.youtube.com/watch?v=S-MlasLCf1A

An episode of the Wire is started on an Ubuntu desktop, from an n900, after which the video that is playing on the desktop machine is shown on the n900 screen.

Addison 2012-01-02 00:59

Re: Ssh
 
^ Thanks!

2nd freakin' line to write more letters.

Cue 2012-01-02 01:12

Re: Ssh
 
Quote:

Originally Posted by ade (Post 1144358)
Not gonna work. Windows is not based on X. Your remote machine has to use an X server.

You can get Xming and Putty and you can do pretty much anything you want.

Estel 2012-01-02 01:57

Re: Ssh
 
Quote:

Originally Posted by Addison (Post 1144355)
^ So to keep things simple, X Forwarding would let my play the default Solitaire game from my Windows XP on my tablet?

Ooh. :)

Exactly the opposite - You view Your N900 application on other machine (linux with X based - native, windows - using special "client", which is in fact X server, no need to get into details before You already check how it works ). Thats why it's called 'X forwarding over SSH' - You can achieve it without virtual desktop, in fact You're just forwarding one program, not whole desktop. Got some advantages and disadvantages over VNC (most common Open standard for virtual desktop) and RDP (Remote Desktop Protocol - semi-open w$ndoze standard, capable of faster user experience while doing basic operations on files etc, but unable to project advanced applications like directx/opengl related. RDP is also possible on linux using special packages)

Take this with a grain of salt, as it's purely theoretical knowledge, I've never used X forwarding over SSH myself.

Important note - OpenSSH package for Maemo lacks some improvements of security - basically, reaction to exploits presented in late 2009, compromising -cbc encryptions in some cases. Prior to that, -cbc was default choice, it was replaced with ,-ctr in correct order of preferences. Of course, if one is feeling paranoical, banning -cbc as whole is also an option, although keeping them as fallback seems sane, due to specific and non-trivial nature of exploiting them (so, in environment controlled by Yourself, You use -ctr, because Your both machines support it and it's higher on client preferences list, but You retain possibility of connecting to other servers, that don't support ctr).

IIRC, 'Ciphers' in /etc/ssh/ssh_config should look like that, for best security and compatibility at the same time:
Code:

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,blowfish-cbc,3des-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour
/Estel

Nokia 5700 2012-01-02 02:17

Re: Ssh
 
Quote:

Originally Posted by Estel (Post 1144386)
Exactly the opposite - You view Your N900 application on other machine (linux with X based - native, windows - using special "client", which is in fact X server, no need to get into details before You already check how it works ).

You say you haven't used X forwarding personally..?
I've tried it a dozen of times, and come to the conclusion of this:
Forwarding apps from a desktop, fine. Forwarding from N900? No...
There is no pointer, and the way Hildon works is very different from any desktop window manager. Most apps from the N900 become hopeless to use, because there is no integration.
From the desktop it is fine as long as the app can squeeze into the screen.

But, Addison, there is something to put in the clear: SSH is a lot more fun when you have a Unix desktop. (I say Unix because Mac can also be used.)

anthonie 2012-01-02 02:46

Re: Ssh
 
Quote:

Originally Posted by Nokia 5700 (Post 1144394)
Forwarding apps from a desktop, fine. Forwarding from N900? No...
There is no pointer, and the way Hildon works is very different from any desktop window manager. Most apps from the N900 become hopeless to use, because there is no integration.

I use Remote Desktop Viewer on my Linux Desktop. I put it aside on one of the desktops and have it running Skype, so I can use my laptop´s keyboard to type messages on my phone´s Skype instantiation. You´ll need X11vnc installed and running on your n900.

Not strictly ssh but it get the job done.

Estel 2012-01-02 03:07

Re: Ssh
 
Generally, everything is more fun when one have a GNU/Linux desktop ;) Yet, SSH'ing and VNC'ing to w$ndoze machine can be also a lot of fun. Windows armed with some .bat scripts and TigerVNC can be neat as WOL machine. Not doing anything that Debian can't do, but if one is tied to windoze by some reasons...

/Estel

mcdull 2012-01-13 06:26

Re: Ssh
 
I can use RDP on N900 to access my PC at home. Is there RDP client on N9?


All times are GMT. The time now is 22:43.

vBulletin® Version 3.8.8