Class notes for December 11th 2004


-----------------------------------

You can log into a remote server and run commands in a shell
ssh user@machine

-----------------------------------

You can run an application remotely in Linux
ssh user@machine application
i.e. ssh root@server.bobsmith.com "/bin/df -k"

-----------------------------------

If you have X forwarding turned on in:
/etc/ssh/ssh_config and /etc/ssh/sshd_config
You can forward X applications.
ssh user@machine application
i.e. ssh root@server.bobsmith.com "/usr/bin/etherape"

-----------------------------------

You can run an entire X session remotely in Linux

Gnome Users:
ssh <remotemachine > "“/usr/X11R6/bin/Xnest :1 & export DISPLAY=remotemachine:1; gnome-session"

KDE Users:
ssh <remotemachine > "/usr/X11R6/bin/Xnest :1 & export DISPLAY=remotemachine:1; startkde"
-----------------------------------

KDE Remote Desktop Sharing:
Launch "Desktop Sharing" on the server. The program will display a one time password
which by default will expire in one hour.

Launch "Remote Desktop Connection" on the workstation and enter the IP address and
password of the server.

-----------------------------------

VNC:
VNC / tightvnc / svnc / xvnc etc. are standardized programs which will allow one computer to remotely connect to another. i.e. Windows to Windows / Linux to Solaris / Solaris to Windows.

VNC functions the same way as Remote Desktop Sharing. The server runs a VNC server
program and the workstation runs a VNC Viewer program.

-----------------------------------

Which one is best?
For speed, ssh with no graphics is the obvious winner.
If a secure, graphical enviroment is required, again ssh.
Showing off to a Windows user, "KDE Remote Desktop Sharing".
Cross platform? A combination of the misc VNC programs.

-----------------------------------


barely related notes:

Port-forwarding or SSH tunnelling

Access the port on your own machine, and it’s mapped through an encrypted SSH connection over the Internet to the destination port in the remote network.

su -c "ssh -C -N -L local_port:destination_server:destination_port ssh_server -l ssh_server username"

• Switches users to root (in order to map to a low port).
• Logs into the SSH server with the specified login.
• Maps a local port to a remote port on the destination server.

You can then access the port on local host as if it were the remote machine.

This technology is useful for many applications, including VNC or KDE Romote Desktop Sharing.



Alt Ctrl Del logins in junky Windows XP can be easily disabled
[Control Panel] then [Users] then [Advanced] tab.